Using synchronization primitives (event.h, mutex.h, rwlock.h, semaphore.h, condvar.h, sync_api.h, sync_types.h, sync.h)

The APIs are intended for synchronizing threads that belong to the same process.

In this section

Using events (event.h)

Using mutexes (mutex.h)

Using read-write locks (rwlock.h)

Using semaphores (semaphore.h)

Using condition variables (condvar.h)

Static initialization of synchronization primitives (sync_types.h)

Using futexes (sync.h)

Page top