vkd3d: Fix potential hang in d3d12_command_queue_Release.
This can happen if the fence thread starts with a delay and the queue gets destroyed shortly after being created. Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
This commit is contained in:
parent
34a09967d5
commit
dadace33b1
|
@ -347,7 +347,7 @@ static void *vkd3d_fence_worker_main(void *arg)
|
|||
break;
|
||||
}
|
||||
|
||||
if (!worker->enqueued_fence_count)
|
||||
if (!worker->enqueued_fence_count && !worker->should_exit)
|
||||
{
|
||||
if ((rc = pthread_cond_wait(&worker->cond, &worker->mutex)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue