mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibC+LibPthread: Use FUTEX_PRIVATE_FLAG in more places
Performance go brrrrr
This commit is contained in:
parent
39a3f42534
commit
65b0642dd0
Notes:
sideshowbarker
2024-07-18 10:13:27 +09:00
Author: https://github.com/bugaevc
Commit: 65b0642dd0
Pull-request: https://github.com/SerenityOS/serenity/pull/8504
3 changed files with 5 additions and 5 deletions
|
@ -127,7 +127,7 @@ int pthread_cond_broadcast(pthread_cond_t* cond)
|
|||
pthread_mutex_t* mutex = AK::atomic_load(&cond->mutex, AK::memory_order_relaxed);
|
||||
VERIFY(mutex);
|
||||
|
||||
int rc = futex(&cond->value, FUTEX_REQUEUE, 1, nullptr, &mutex->lock, INT_MAX);
|
||||
int rc = futex(&cond->value, FUTEX_REQUEUE | FUTEX_PRIVATE_FLAG, 1, nullptr, &mutex->lock, INT_MAX);
|
||||
VERIFY(rc >= 0);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue