mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
LibPthread: Fix some assertions
This commit is contained in:
parent
78f5c4a4c2
commit
5aa629717e
Notes:
sideshowbarker
2024-07-18 10:17:25 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/5aa629717e0 Pull-request: https://github.com/SerenityOS/serenity/pull/8495
|
@ -128,6 +128,6 @@ int pthread_cond_broadcast(pthread_cond_t* cond)
|
|||
VERIFY(mutex);
|
||||
|
||||
int rc = futex(&cond->value, FUTEX_REQUEUE, 1, nullptr, &mutex->lock, INT_MAX);
|
||||
VERIFY(rc == 0);
|
||||
VERIFY(rc >= 0);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ int sem_post(sem_t* sem)
|
|||
if (!(value & POST_WAKES)) [[likely]]
|
||||
return 0;
|
||||
int rc = futex_wake(&sem->value, 1);
|
||||
VERIFY(rc == 0);
|
||||
VERIFY(rc >= 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue