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:
@@ -136,8 +136,9 @@ static void process_jobs(private_processor_t *this)
|
|||||||
thread_cleanup_pop(FALSE);
|
thread_cleanup_pop(FALSE);
|
||||||
this->mutex->lock(this->mutex);
|
this->mutex->lock(this->mutex);
|
||||||
}
|
}
|
||||||
|
this->total_threads--;
|
||||||
|
this->thread_terminated->signal(this->thread_terminated);
|
||||||
this->mutex->unlock(this->mutex);
|
this->mutex->unlock(this->mutex);
|
||||||
restart(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user