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

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


#include <thread.h>

mutex_t mp;
int ret;

/* このプロセスの中だけで使用する */
ret = mutex_init(&mp, USYNC_THREAD, 0);