diff options
author | Gunnar Beutner <gunnar@beutner.name> | 2021-04-19 16:23:17 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-04-19 17:55:35 +0200 |
commit | bd08f9188a60536221df2f00d58a4ff54bd0e753 (patch) | |
tree | 390dd184b66cd3c2d55311ded428e0c9205e2808 /Userland/Libraries/LibPthread/pthread.cpp | |
parent | 136f6fb7c8ed783906a1542c19ab674c362e4d26 (diff) | |
download | serenity-bd08f9188a60536221df2f00d58a4ff54bd0e753.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibPthread/pthread.cpp')
-rw-r--r-- | Userland/Libraries/LibPthread/pthread.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Libraries/LibPthread/pthread.cpp b/Userland/Libraries/LibPthread/pthread.cpp index 1f24dce813..4372f2bf7d 100644 --- a/Userland/Libraries/LibPthread/pthread.cpp +++ b/Userland/Libraries/LibPthread/pthread.cpp @@ -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); |