mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-22 14:59:15 +01:00
Fix potential circular queue submission race
If a producer thread was waiting for the queue to have free space and the consumer thread hadn't yet acquired the production mutex a deadlock could occur
This commit is contained in:
parent
13baf2312f
commit
e1bbd521d9
@ -57,7 +57,7 @@ namespace skyline {
|
||||
|
||||
while (true) {
|
||||
if (start == end) {
|
||||
std::unique_lock lock(productionMutex);
|
||||
std::unique_lock lock{consumptionMutex};
|
||||
|
||||
TRACE_EVENT_END("containers");
|
||||
preWait();
|
||||
|
Loading…
Reference in New Issue
Block a user