[vlc-devel] [PATCH 2/2] os2: implement vlc_thread_id()

KO Myung-Hun komh78 at gmail.com
Sun Jun 5 17:37:06 CEST 2016


---
 src/os2/thread.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/os2/thread.c b/src/os2/thread.c
index aa75b69..05363e3 100644
--- a/src/os2/thread.c
+++ b/src/os2/thread.c
@@ -658,11 +658,7 @@ vlc_thread_t vlc_thread_self (void)
 
 unsigned long vlc_thread_id (void)
 {
-#if 0
-    return vlc_thread_self ()->tid; /* potential NULL deref */
-#else
-    return -1;
-#endif
+    return _gettid();
 }
 
 /*** Thread cancellation ***/
-- 
2.7.0



More information about the vlc-devel mailing list