mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
LibPthread: Implement pthread_self()
This commit is contained in:
parent
d08061103d
commit
594c7f2d83
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue