[vlc-commits] win32: do not (re)initialise config lock
Rémi Denis-Courmont
git at videolan.org
Sun Jan 10 12:50:51 UTC 2021
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec 22 22:17:12 2020 +0200| [faa7b584fc17cc4ef00405c7139348964ca2224a] | committer: Rémi Denis-Courmont
win32: do not (re)initialise config lock
This is a static lock. As of 4.0.0-dev-11158-ga18c4d6570, there are no
needs to initialise static locks on Windows.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=faa7b584fc17cc4ef00405c7139348964ca2224a
---
src/win32/thread.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/win32/thread.c b/src/win32/thread.c
index 60b4232e04..91f3c40eaa 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -785,8 +785,6 @@ void vlc_threads_setup(libvlc_int_t *vlc)
#define LOOKUP(s) (((s##_) = (void *)GetProcAddress(h, #s)) != NULL)
-extern vlc_rwlock_t config_lock;
-
BOOL WINAPI DllMain (HANDLE hinstDll, DWORD fdwReason, LPVOID lpvReserved)
{
(void) hinstDll;
@@ -816,12 +814,10 @@ BOOL WINAPI DllMain (HANDLE hinstDll, DWORD fdwReason, LPVOID lpvReserved)
InitializeCriticalSection(&setup_lock);
InitializeCriticalSection(&super_mutex);
InitializeConditionVariable(&super_variable);
- vlc_rwlock_init (&config_lock);
break;
}
case DLL_PROCESS_DETACH:
- vlc_rwlock_destroy (&config_lock);
DeleteCriticalSection(&super_mutex);
DeleteCriticalSection(&setup_lock);
TlsFree(thread_key);
More information about the vlc-commits
mailing list