I have an application which takes care of some syncronization problems, it relies heavily on the POSIX functions, sem_wait, pthread_join and sem_post, I'd like to know what are the winapi equivalents for these?
CodePudding user response:
sem_wait() -> WaitForSingleObject() on a Semaphore object
pthread_join() -> WaitForSingleObject() on a Thread object
sem_post()-> ReleaseSemaphore() on a Semaphore object
See Using Semaphore Objects in MSDN's documentation.
