diff options
-rw-r--r-- | Userland/Libraries/LibPthread/pthread.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibPthread/pthread.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibPthread/pthread.cpp b/Userland/Libraries/LibPthread/pthread.cpp index 8c7943461e..8c5ba4b947 100644 --- a/Userland/Libraries/LibPthread/pthread.cpp +++ b/Userland/Libraries/LibPthread/pthread.cpp @@ -666,4 +666,9 @@ int pthread_setcanceltype([[maybe_unused]] int type, [[maybe_unused]] int* oldty TODO(); } +int pthread_equal(pthread_t t1, pthread_t t2) +{ + return t1 == t2; +} + } // extern "C" diff --git a/Userland/Libraries/LibPthread/pthread.h b/Userland/Libraries/LibPthread/pthread.h index f00cdcbaed..67e6300911 100644 --- a/Userland/Libraries/LibPthread/pthread.h +++ b/Userland/Libraries/LibPthread/pthread.h @@ -125,4 +125,6 @@ int pthread_mutexattr_destroy(pthread_mutexattr_t*); int pthread_setname_np(pthread_t, const char*); int pthread_getname_np(pthread_t, char*, size_t); +int pthread_equal(pthread_t t1, pthread_t t2); + __END_DECLS |