[vlc-commits] os2: do not (re)initialise config lock

Rémi Denis-Courmont git at videolan.org
Sun Jan 10 12:50:50 UTC 2021


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec 22 22:17:12 2020 +0200| [03a38d1c267a25b4b1ddf89af55f67f29fa158d0] | committer: Rémi Denis-Courmont

os2: 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 OS/2.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=03a38d1c267a25b4b1ddf89af55f67f29fa158d0
---

 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();



More information about the vlc-commits mailing list