Multithreaded Programming Guide

sema_wait Syntax

#include <thread.h>

int sema_wait(sema_t *sp);