Document an assert in idle_loop()
authorMarco Costalba <mcostalba@gmail.com>
Mon, 11 Oct 2010 18:56:07 +0000 (19:56 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 11 Oct 2010 18:56:35 +0000 (19:56 +0100)
Thanks to Bruno Causse for the clarification.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index fca542e09278d94cb4ffe08169513075cb78e778..93243ed7488ad512872fc22b6a874c23de49f9a2 100644 (file)
@@ -2384,6 +2384,8 @@ namespace {
             lock_grab(&(sp->lock));
             lock_release(&(sp->lock));
 
+            // In helpful master concept a master can help only a sub-tree, and
+            // because here is all finished is not possible master is booked.
             assert(threads[threadID].state == THREAD_AVAILABLE);
 
             threads[threadID].state = THREAD_SEARCHING;