QMutex mutex; .... }; 然後改寫一下setNameAndID(),您使用QMutex的lock()與unlock()方法來鎖定同步區域:. void UserInfo::setNameAndID(const QString &name, ...
確定! 回上一頁