Skip to content

Commit 05737c8

Browse files
komhjbkempf
authored andcommitted
os2: implement vlc_thread_id()
Signed-off-by: Jean-Baptiste Kempf <[email protected]>
1 parent ea8c75d commit 05737c8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/os2/thread.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -645,11 +645,7 @@ vlc_thread_t vlc_thread_self (void)
645645

646646
unsigned long vlc_thread_id (void)
647647
{
648-
#if 0
649-
return vlc_thread_self ()->tid; /* potential NULL deref */
650-
#else
651-
return -1;
652-
#endif
648+
return _gettid();
653649
}
654650

655651
/*** Thread cancellation ***/

0 commit comments

Comments
 (0)