renamed a member variable

This commit is contained in:
sascha 2026-05-07 16:18:08 +02:00
parent 5e6ba3666e
commit 1e08996087
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public:
: participants_(participants) {}
void arrive_and_wait() {
std::unique_lock<std::mutex> lock(m_);
std::unique_lock lock(mutex_);
++arrived_;
if (arrived_ >= participants_) {
open_ = true;
@ -49,7 +49,7 @@ public:
}
private:
std::mutex m_;
std::mutex mutex_;
std::condition_variable cv_;
int participants_{0};
int arrived_{0};