From 594c7f2d83ce3bcc2d5db840be199e8574283504 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 7 Dec 2019 14:30:37 +0100 Subject: [PATCH] LibPthread: Implement pthread_self() --- Libraries/LibPthread/pthread.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/LibPthread/pthread.cpp b/Libraries/LibPthread/pthread.cpp index 878e4ac4de..009e7018d7 100644 --- a/Libraries/LibPthread/pthread.cpp +++ b/Libraries/LibPthread/pthread.cpp @@ -34,6 +34,11 @@ static void exit_thread(void* code) ASSERT_NOT_REACHED(); } +int pthread_self() +{ + return gettid(); +} + int pthread_create(pthread_t* thread, pthread_attr_t* attributes, void* (*start_routine)(void*), void* argument_to_start_routine) { if (!thread)