mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Mention the correct mutex in a comment.
This commit is contained in:
parent
a18f3d4dd5
commit
ef8d272507
Notes:
Alexandre Julliard
2023-03-08 21:51:20 +01:00
Approved-by: Conor McCarthy (@cmccarthy) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/94
@ -670,8 +670,9 @@ static HRESULT d3d12_device_flush_blocked_queues_once(struct d3d12_device *devic
|
||||
|
||||
vkd3d_mutex_lock(&device->blocked_queues_mutex);
|
||||
|
||||
/* Flush any ops unblocked by a new pending value. These cannot be flushed
|
||||
* with the device locked, so move the queue pointers to a local array. */
|
||||
/* Flush any ops unblocked by a new pending value. These cannot be
|
||||
* flushed while holding blocked_queue_mutex, so move the queue
|
||||
* pointers to a local array. */
|
||||
blocked_queue_count = device->blocked_queue_count;
|
||||
memcpy(blocked_queues, device->blocked_queues, blocked_queue_count * sizeof(blocked_queues[0]));
|
||||
device->blocked_queue_count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user