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

プロセス間スコープでの mutex

#include <thread.h>

mutex_t mp;
int ret;

/* すべてのプロセスの間で使用する */
ret = mutex_init(&mp, USYNC_PROCESS, 0);