windows: Fix mutexes leaking into the exports table

Translation unit-local variables must be marked static on Windows,
otherwise they're made available to the whole binary.

See:

https://learn.microsoft.com/en-us/cpp/cpp/program-and-linkage-cpp?view=msvc-170#external-vs-internal-linkage

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5185>
This commit is contained in:
L. E. Segovia 2023-08-14 21:58:29 -03:00 committed by GStreamer Marge Bot
parent ccfbdcad90
commit b1a5707fcb
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_d3d11_ipc_client_debug);
static GThreadPool *gc_thread_pool = nullptr;
/* *INDENT-OFF* */
std::mutex gc_pool_lock;
static std::mutex gc_pool_lock;
/* *INDENT-ON* */
void

View file

@ -35,7 +35,7 @@ GST_DEBUG_CATEGORY (cuda_ipc_client_debug);
static GThreadPool *gc_thread_pool = nullptr;
/* *INDENT-OFF* */
std::mutex gc_pool_lock;
static std::mutex gc_pool_lock;
/* *INDENT-ON* */
void