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:
parent
ecacf7f9f7
commit
3649712059
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue