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

sema_trywait の構文

#include <thread.h>

int sema_trywait(sema_t *sp);