Skip to content

Commit

Permalink
shared lock is ok here
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Aug 7, 2023
1 parent 31fce03 commit 5a6906e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ void tcp::packet_handler(packet *const pkt)
if (notify_unacked_cv) {
unacked_cv_mem = true;

std::unique_lock<std::shared_mutex> lck_s(sessions_lock);
std::shared_lock<std::shared_mutex> lck_s(sessions_lock);
unacked_cv.notify_one();
}
}
Expand Down

0 comments on commit 5a6906e

Please sign in to comment.