1
在以下示例中:http://en.cppreference.com/w/cpp/thread/condition_variable 什麼阻止main()線程在worker_thread到達cv.wait()之前調用cv.notify_one()?在我看來,如果main()線程提前通知worker_thread可能會永遠等待。瞭解此提升條件變量示例的問題
我期望在「cv.wait()」周圍看到「while(!ready)」。