Here’s some code for my future reference on how to use QMutex or QMutexLocker. Lessons Learned: * Use QMutex to protect data, not code. Try not to lock hughe amounts of code within a function with mutex.lock(), mutex.unlock(), if for any reason you forget to release the lock you’ll be in trouble. Use the mutex […]