1
0
Fork 0
mirror of https://gitlab.com/niansa/cosched.git synced 2025-03-06 20:53:26 +01:00

Unlock mutex properly

This commit is contained in:
niansa 2023-05-22 22:55:39 +02:00
parent ecacf7f9f7
commit 3649712059

View file

@ -32,7 +32,7 @@ public:
}
void unlock() {
// If nothing is waiting for the lock to release, just release it and we're done
if (!resume_on_unlock.empty()) {
if (resume_on_unlock.empty()) {
held = false;
return;
}