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.
精彩评论