user16469617
user16469617

Reputation:

WinAPI equivalent for Linux/POSIX pthread_wait/pthread_post

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

Answers (1)

Remy Lebeau
Remy Lebeau

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

Related Questions