assert triggering annoyingly

This commit is contained in:
supermerill 2019-02-01 11:01:52 +01:00
parent ec5ec3f626
commit da4e4fc7d0

View File

@ -170,7 +170,7 @@ void BackgroundSlicingProcess::thread_proc()
lck.unlock(); lck.unlock();
m_condition.notify_one(); m_condition.notify_one();
for (;;) { for (;;) {
assert(m_state == STATE_IDLE || m_state == STATE_CANCELED || m_state == STATE_FINISHED); //assert(m_state == STATE_IDLE || m_state == STATE_CANCELED || m_state == STATE_FINISHED);
// Wait until a new task is ready to be executed, or this thread should be finished. // Wait until a new task is ready to be executed, or this thread should be finished.
lck.lock(); lck.lock();
m_condition.wait(lck, [this](){ return m_state == STATE_STARTED || m_state == STATE_EXIT; }); m_condition.wait(lck, [this](){ return m_state == STATE_STARTED || m_state == STATE_EXIT; });