开发者

WinAPI timed mutex lock

How to lock mutex (critical section) for some amount of time? Is there any API function for 开发者_如何学编程that? As far as I see there is nothing like that in windows. If so, is it possible to implement it manualy?

Thanks.


The equivalent of pthread_mutex_timedlock() in Win32 is using a Mutex and specifying a timeout (other than INFINITE) in one of the wait-functions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜