MCPcopy Create free account
hub / github.com/Tencent/phxpaxos / Stop

Method Stop

src/node/propose_batch.cpp:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void ProposeBatch :: Stop()
70{
71 if (m_bIsStarted)
72 {
73 std::unique_lock<std::mutex> oLock(m_oMutex);
74 m_bIsEnd = true;
75 m_oCond.notify_all();
76 oLock.unlock();
77
78 m_poThread->join();
79 }
80}
81
82void ProposeBatch :: SetBatchCount(const int iBatchCount)
83{

Callers

nothing calls this directly

Calls 2

unlockMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected