mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03: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: https://github.com/SerenityOS/serenity/commit/594c7f2d83c
@ -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…
Reference in New Issue
Block a user