It is easy to produce a deadlock. Curious? Exceptions and unknown code. std::mutex m; m.lock(); sharedVariable= getVar(); m.unlock();.
確定! 回上一頁