#include <thread.h> sema_t sp; int ret; int count; count = 4; /* すべてのプロセスの間で使用する */ ret = sema_init (&sp, count, USYNC_PROCESS, 0);