mirror of
https://github.com/corda/corda.git
synced 2025-01-19 03:06:36 +00:00
avoid busy wait when entering "exclusive" state
This commit is contained in:
parent
6d9e1270ca
commit
0b09c6aa30
@ -2350,6 +2350,7 @@ enter(Thread* t, Thread::State s)
|
||||
while (t->m->exclusive) {
|
||||
// another thread got here first.
|
||||
ENTER(t, Thread::IdleState);
|
||||
t->m->stateLock->wait(t->systemThread, 0);
|
||||
}
|
||||
|
||||
switch (t->state) {
|
||||
|
Loading…
Reference in New Issue
Block a user