mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
Pthread: Add stubs for pthread_cleanup_{push,pop}
The stubs are necessary to make the xz port properly detect pthread support. The two functions are only used in the configure script and nowhere else.
This commit is contained in:
parent
136f6fb7c8
commit
bd08f9188a
Notes:
sideshowbarker
2024-07-18 19:23:56 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/bd08f9188a6 Pull-request: https://github.com/SerenityOS/serenity/pull/6484 Reviewed-by: https://github.com/ADKaster
1 changed files with 10 additions and 0 deletions
|
@ -143,6 +143,16 @@ void pthread_exit(void* value_ptr)
|
|||
exit_thread(value_ptr);
|
||||
}
|
||||
|
||||
void pthread_cleanup_push([[maybe_unused]] void (*routine)(void*), [[maybe_unused]] void* arg)
|
||||
{
|
||||
TODO();
|
||||
}
|
||||
|
||||
void pthread_cleanup_pop([[maybe_unused]] int execute)
|
||||
{
|
||||
TODO();
|
||||
}
|
||||
|
||||
int pthread_join(pthread_t thread, void** exit_value_ptr)
|
||||
{
|
||||
int rc = syscall(SC_join_thread, thread, exit_value_ptr);
|
||||
|
|
Loading…
Reference in a new issue