[vlc-devel] [PATCH 1/2] os2: do not (re)initialise config lock
remi at remlab.net
remi at remlab.net
Tue Dec 22 20:21:31 UTC 2020
From: RĂ©mi Denis-Courmont <remi at remlab.net>
This is a static lock. As of 4.0.0-dev-11158-ga18c4d6570, there are no
needs to initialise static locks on OS/2.
---
src/os2/thread.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/os2/thread.c b/src/os2/thread.c
index 822b3f3b26..0d7bc9e79f 100644
--- a/src/os2/thread.c
+++ b/src/os2/thread.c
@@ -131,7 +131,6 @@ static ULONG vlc_Sleep (ULONG ulTimeout)
static vlc_mutex_t super_mutex;
static vlc_cond_t super_variable;
-extern vlc_rwlock_t config_lock;
int _CRT_init(void);
void _CRT_term(void);
@@ -151,12 +150,10 @@ unsigned long _System _DLL_InitTerm(unsigned long hmod, unsigned long flag)
vlc_mutex_init (&super_mutex);
vlc_cond_init (&super_variable);
vlc_threadvar_create (&thread_key, NULL);
- vlc_rwlock_init (&config_lock);
return 1;
case 1 : /* Termination */
- vlc_rwlock_destroy (&config_lock);
vlc_threadvar_delete (&thread_key);
_CRT_term();
--
2.29.2
More information about the vlc-devel
mailing list