LibPthread: Add pthread_equal()

This commit is contained in:
Andreas Kling 2021-01-12 13:42:45 +01:00
parent bee1145bdf
commit f2a6ee76c0
Notes: sideshowbarker 2024-07-18 23:53:33 +09:00
2 changed files with 7 additions and 0 deletions

View file

@ -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"

View file

@ -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