mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
LibPthread: Implement pthread_self()
This commit is contained in:
parent
d08061103d
commit
594c7f2d83
Notes:
sideshowbarker
2024-07-19 10:56:38 +09:00
Author: https://github.com/awesomekling
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