| 67 | } |
| 68 | |
| 69 | void 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 | |
| 82 | void ProposeBatch :: SetBatchCount(const int iBatchCount) |
| 83 | { |