mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 20:27:35 +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();
|
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)
|
int pthread_create(pthread_t* thread, pthread_attr_t* attributes, void* (*start_routine)(void*), void* argument_to_start_routine)
|
||||||
{
|
{
|
||||||
if (!thread)
|
if (!thread)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue