如題,winxp下如何使用條件變數呢?
xp下不支持InitializeConditionVariable這種函式,不知道要如何使用條件變數,求大神指導。
uj5u.com熱心網友回復:
Windows Server 2003 and Windows XP: Condition variables are not supported.不過為什么要什么它呢?那么多同步方法
uj5u.com熱心網友回復:
我覺得可以用Event Objects和WaitForSingleObject來代替https://docs.microsoft.com/en-us/windows/win32/sync/using-event-objects
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/32525.html
標籤:C++ 語言
上一篇:請大神們看看,這段代碼運行時為何會出現hard fault?
下一篇:利用c++語言實作下面的演算法
