Skip to content

Commit fcda137

Browse files
committed
Add getting started section
1 parent 77342e6 commit fcda137

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ struct PrintingEventHandler : Disruptor::IEventHandler< LongEvent >
6868
std::cout << "Event: " << event.value << std::endl;
6969

7070
if (++m_actuallyProcessed == m_toProcess)
71-
allDone.notify_all();
71+
m_allDone.notify_all();
7272
}
7373

7474
void waitEndOfProcessing()
7575
{
76-
std::unique_lock<std::mutex> lk(m);
77-
allDone.wait(lk);
76+
std::unique_lock<decltype(m_mutex)> lk(m_mutex);
77+
m_allDone.wait(lk);
7878
}
7979

8080
private:
81-
std::mutex m;
82-
std::condition_variable allDone;
81+
std::mutex m_mutex;
82+
std::condition_variable m_allDone;
8383
int m_toProcess;
8484
int m_actuallyProcessed;
8585
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy