options/posix: Implemented pthread_equal.
@@ -114,10 +114,12 @@ pthread_t pthread_self(void) {
return reinterpret_cast<pthread_t>(mlibc::get_current_tcb());
}
-int pthread_equal(pthread_t, pthread_t) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+int pthread_equal(pthread_t t1, pthread_t t2) {
+ if(t1 == t2)
+ return 1;
+ return 0;
}
+
int pthread_exit(void *) {
__ensure(!"Not implemented");
__builtin_unreachable();
