マルチスレッドのプログラミング

sema_wait の構文

#include <thread.h>

int sema_wait(sema_t *sp);