We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77342e6 commit fcda137Copy full SHA for fcda137
README.md
@@ -68,18 +68,18 @@ struct PrintingEventHandler : Disruptor::IEventHandler< LongEvent >
68
std::cout << "Event: " << event.value << std::endl;
69
70
if (++m_actuallyProcessed == m_toProcess)
71
- allDone.notify_all();
+ m_allDone.notify_all();
72
}
73
74
void waitEndOfProcessing()
75
{
76
- std::unique_lock<std::mutex> lk(m);
77
- allDone.wait(lk);
+ std::unique_lock<decltype(m_mutex)> lk(m_mutex);
+ m_allDone.wait(lk);
78
79
80
private:
81
- std::mutex m;
82
- std::condition_variable allDone;
+ std::mutex m_mutex;
+ std::condition_variable m_allDone;
83
int m_toProcess;
84
int m_actuallyProcessed;
85
};
0 commit comments