Is there a reason why you are using pthread mutex instead of QMutex?
Is there a reason why you are using pthread mutex instead of QMutex?