Do not invoke processor restart() if not required

Doing so might result in a deadlock during shutdown if a delayed
restart is locked on the bus during the debug statement.
This commit is contained in:
Martin Willi
2011-03-15 11:48:19 +01:00
parent 41080cbbd9
commit 11f89bc948
+2 -1
View File
@@ -136,8 +136,9 @@ static void process_jobs(private_processor_t *this)
thread_cleanup_pop(FALSE);
this->mutex->lock(this->mutex);
}
this->total_threads--;
this->thread_terminated->signal(this->thread_terminated);
this->mutex->unlock(this->mutex);
restart(this);
}
/**