Skip to content

Commit

Permalink
Fixed bug in rwlock::downgrade().
Browse files Browse the repository at this point in the history
  • Loading branch information
Helios-vmg committed Jun 26, 2023
1 parent fd0c573 commit 084c585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rwmutex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void rwlock::upgrade(){
void rwlock::downgrade(){
if (state != 2)
throw std::runtime_error("incorrect use");
m.upgrade();
m.downgrade();
state = 1;
}

Expand Down

0 comments on commit 084c585

Please sign in to comment.