[vlc-commits] os2: implement vlc_thread_id()
KO Myung-Hun
git at videolan.org
Sun Jun 5 23:32:31 CEST 2016
vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Mon Jun 6 00:37:06 2016 +0900| [05737c8d8edcd1333ef7eefe7ad3dd213eeb506b] | committer: Jean-Baptiste Kempf
os2: implement vlc_thread_id()
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> 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 ***/
More information about the vlc-commits
mailing list