Reputation:
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?
Upvotes: 1
Views: 191
Reputation: 596186
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.
Upvotes: 4