Documentation Home
>
マルチスレッドのプログラミング
>
第 6 章 Solaris スレッドを使ったプログラミング
>
pthread に相当するものがある同期関数 — セマフォー
>
セマフォーの減算
> sema_trywait の構文
マルチスレッドのプログラミング
Previous
: セマフォーの値によるブロック
Next
: sema_trywait の戻り値
sema_trywait
の構文
#include <thread.h> int sema_trywait(sema_t *
sp
);
Previous
: セマフォーの値によるブロック
Next
: sema_trywait の戻り値
© 2010, Oracle Corporation and/or its affiliates