mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-29 21:42:05 +08:00
assert triggering annoyingly
This commit is contained in:
parent
ec5ec3f626
commit
da4e4fc7d0
@ -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; });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user