QMutex

最后更新于:2022-04-02 02:12:55

[TOC] ## QMutex ``` QMutex mutex; int number = 6; void method1() { mutex.lock(); number *= 5; number /= 4; mutex.unlock(); } void method2() { mutex.lock(); number *= 3; number /= 2; mutex.unlock(); } ```
';