What is the equivalent of following POSIX timed Reader/Writer locks in windows(MSVC)?
- pthread_rwlock_timedrdlock()
- pthread_rwlock_timedwrlock()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Take a look at pthreads-win32, which implements both functions (and the rest of pthreads) using the Win32 API. Its implementation of these functions should be enough to get you started. Or you could use it directly instead of the native Win32 thread and synchronization primitives.