views:

82

answers:

1

What is the equivalent of following POSIX timed Reader/Writer locks in windows(MSVC)?

  • pthread_rwlock_timedrdlock()
  • pthread_rwlock_timedwrlock()
A: 

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.

CesarB