diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-12 13:42:45 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-12 13:42:45 +0100 |
commit | f2a6ee76c0b5d8c9feaaf8b5ad4f175e58789c32 (patch) | |
tree | 31b8d8d19247113ebb9368065cacf36fa91a1dff | |
parent | bee1145bdf1167a5e0aa5a245ab4fc9b02e29ba8 (diff) | |
download | serenity-f2a6ee76c0b5d8c9feaaf8b5ad4f175e58789c32.zip |
LibPthread: Add pthread_equal()
-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 |