mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-10 01:50:53 +09:00
16
This commit is contained in:
parent
b58de909fb
commit
dd777209e4
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ private:
|
|||
// will do a lot less attempts than an simple retry. On multiprocessor machine fruitless attempts
|
||||
// will cause unnecessary sharing of the contended state which may make modifying the state more expensive.
|
||||
// To protect against degenerate cases we will cap the per-iteration wait to 1024 spinwaits.
|
||||
static const uint32_t MaxExponentialBackoffBits = 8;
|
||||
static const uint32_t MaxExponentialBackoffBits = 16;
|
||||
|
||||
// This lock is unfair and permits acquiring a contended lock by a nonwaiter in the presence of waiters.
|
||||
// It is possible for one thread to keep holding the lock long enough that waiters go to sleep and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue