From bd08f9188a60536221df2f00d58a4ff54bd0e753 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 19 Apr 2021 16:23:17 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibPthread/pthread.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);