I create two threads,and they share class A;
I do not know the second locker is need or not,please please tell me.Qt Code:
class A { public: void method_1() { ...... method_2(); ...... } void method_2() { ........ } public: mutable QMutex mutex; }To copy to clipboard, switch view to plain text mode
Bookmarks