diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2023-10-24 09:57:51 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-10-24 09:58:25 -0700 |
commit | b841db22f8d1d9cdbaacecf2e7c87ce270f8d96f (patch) | |
tree | 24575455b97fe34d6ac029a91de181e9a0f982f6 /absl/memory | |
parent | 8b38320373e802c288276a8c1cf3274957a4fa5e (diff) |
absl: requeue waiters as LIFO
Currently if a thread already blocked on a Mutex,
but then failed to acquire the Mutex, we queue it in FIFO order again.
As the result unlucky threads can suffer bad latency
if they are requeued several times.
The least we can do for them is to queue in LIFO order after blocking.
PiperOrigin-RevId: 576174725
Change-Id: I9e2a329d34279a26bd1075b42e3217a5dc065f0a
Diffstat (limited to 'absl/memory')
0 files changed, 0 insertions, 0 deletions