mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 00:39:17 +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) {
|
while (true) {
|
||||||
if (start == end) {
|
if (start == end) {
|
||||||
std::unique_lock lock(productionMutex);
|
std::unique_lock lock{consumptionMutex};
|
||||||
|
|
||||||
TRACE_EVENT_END("containers");
|
TRACE_EVENT_END("containers");
|
||||||
preWait();
|
preWait();
|
||||||
|
Loading…
Reference in New Issue
Block a user