mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
Adding another possible case for addThread to expect. One common case that triggers is is when both arguments to addThread are the same thread (such as the call from attachThread). SWT on darwin seems to do this for dialog boxes.
This commit is contained in:
parent
ccebdb2107
commit
aab1b6e087
@ -1995,7 +1995,7 @@ addThread(Thread* t, Thread* p)
|
||||
ACQUIRE_RAW(t, t->m->stateLock);
|
||||
|
||||
assert(t, p->state == Thread::NoState);
|
||||
expect(t, t->state == Thread::ActiveState || t->state == Thread::ExclusiveState);
|
||||
expect(t, t->state == Thread::ActiveState || t->state == Thread::ExclusiveState || t->state == Thread::NoState);
|
||||
|
||||
p->state = Thread::IdleState;
|
||||
++ t->m->threadCount;
|
||||
|
Loading…
Reference in New Issue
Block a user