show the state of the thread in question
This commit is contained in:
parent
571c265ccd
commit
a22bb5e54f
1 changed files with 1 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ lumiera_thread_sync_other (LumieraThread other)
|
|||
|
||||
LUMIERA_CONDITION_SECTION (threads, &other->signal)
|
||||
{
|
||||
REQUIRE (other->state == LUMIERA_THREADSTATE_SYNCING); TODO("Runtime error when state expectation isnt met");
|
||||
REQUIRE (other->state == LUMIERA_THREADSTATE_SYNCING, "the other thread is in the wrong state: %s", lumiera_threadstate_names[other->state]); TODO("Runtime error when state expectation isn't met");
|
||||
other->state = LUMIERA_THREADSTATE_RUNNING;
|
||||
LUMIERA_CONDITION_SIGNAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue