From a22bb5e54f372688b3cbb0bb717a1cc524f8ba43 Mon Sep 17 00:00:00 2001 From: Michael Ploujnikov Date: Wed, 20 Jan 2010 17:09:37 -0500 Subject: [PATCH] show the state of the thread in question --- src/backend/threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/threads.c b/src/backend/threads.c index 860ee1770..f842f32ae 100644 --- a/src/backend/threads.c +++ b/src/backend/threads.c @@ -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; }