Linux/POSIX pthread_wait/pthread_post 的 WinAPI 等价物

WinAPI equivalent for Linux/POSIX pthread_wait/pthread_post

我有一个处理一些同步问题的应用程序,它在很大程度上依赖于 POSIX 函数,sem_wait、pthread_join 和 sem_post,我会想知道这些的 winapi 等价物是什么?

sem_wait() -> WaitForSingleObject() on a Semaphore object

pthread_join() -> WaitForSingleObject() on a Thread object

sem_post()->ReleaseSemaphore() on a Semaphore object

请参阅 MSDN 文档中的 Using Semaphore Objects