WaitForSingle 目的不是锁定的,但允许其他胎面改变C++的价值。
原文:WaitForSingleObject is not locking, Still allowing other threads to change value in C++
原文:WaitForSingleObject is not locking, Still allowing other threads to change value in C++
I m 试图使用WaitForSingleObject(fork [leftFork],无限);用多管线锁定一个变数,但似乎没有锁定任何东西。