// Lock the thread lists.
lock();
- printf("Full thread dump CACAO "VERSION":\n");
+ printf("Full thread dump CACAO "VERSION_FULL":\n");
// Iterate over all started threads.
threadobject* self = THREADOBJECT;
/**
- * Return a free thread object.
+ * Return a free thread object. Caller must hold the thread list lock.
*
* @return free thread object or NULL if none available
*/
// Do we have free threads in the free-list?
if (_free_thread_list.empty() == false) {
// Yes, get the index and remove it from the free list.
- threadobject* t = _free_thread_list.front();
+ t = _free_thread_list.front();
_free_thread_list.remove(t);
}
/**
- * Return a free thread index.
+ * Return a free thread index. Caller must hold the thread list lock.
*
* @return free thread index
*/