When I create two threads,and synchronize them with QMutex,Do I define a mutex(QMutex) as a local varable(that is,mutex is defined respectively in two threads) or a global one(that is ,the two threads visit the same mutex)?