mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 07:47:48 +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
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…
Add table
Add a link
Reference in a new issue