mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
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:
parent
ccfbdcad90
commit
b1a5707fcb
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue