vlc | branch: master | KO Myung-Hun <[email protected]> | Mon Jun  6 00:37:06 
2016 +0900| [05737c8d8edcd1333ef7eefe7ad3dd213eeb506b] | committer: 
Jean-Baptiste Kempf

os2: implement vlc_thread_id()

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 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 c7bf9b3..35dd008 100644
--- a/src/os2/thread.c
+++ b/src/os2/thread.c
@@ -645,11 +645,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 ***/

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to