diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2023-09-18 19:14:42 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-09-18 19:15:53 -0700 |
commit | a5dc018f1016ffc92024338c300d64acfb1475f5 (patch) | |
tree | 2b5e537ccc0453dd66e4a4e68f4f1a96753ef917 /absl/strings | |
parent | 243b7d386a15b88dfa32eeadabeb3ddc396a37f4 (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: 566478783
Change-Id: I8bac08325f20ff6ccc2658e04e1847fd4614c653
Diffstat (limited to 'absl/strings')
0 files changed, 0 insertions, 0 deletions