互斥锁与qt子线程

void ER15HW::run()
{
    while (true)
    {
        mutex.lock();

        if (toShutDownThread)
        break;

    mutex.unlock();

    QThread::msleep(5);
    }
}        

 

posted @ 2020-05-20 09:13  maider  阅读(533)  评论(0编辑  收藏  举报