LibPthread: Implement pthread_self()

This commit is contained in:
Andreas Kling 2019-12-07 14:30:37 +01:00
parent d08061103d
commit 594c7f2d83
Notes: sideshowbarker 2024-07-19 10:56:38 +09:00

View File

@ -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)