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:
1 parent
41080cbbd9
commit
11f89bc948
1 file changed
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user