There is such a code
for (;;) { //... _mutex.unlock(); f(); _mutex.lock(); //... } The f() function causes the Qt signal to be redrawn, the processing of which, as I understand it, occurs in a new thread unknown to me, and it does not always manage to capture the mutex and _mutex.lock from the code above works earlier. How can I make _mutex.lock run no earlier than the signal processing _mutex.lock ? I am using C ++ 11 threads.
f()generate a signal like drawingFinished () and hang a slot withlock(); …lock(); …- LXA