tail head cat sleep
QR code linking to this page

manページ  — PTHREAD_COND_SIGNAL

名称

pthread_cond_signal – 条件変数を待っている 1 つのスレッドのブロック解除

内容

ライブラリ

Reentrant C\~Library (libc_r, -lc_r)

書式

#include <pthread.h>

int
pthread_cond_signal(pthread_cond_t *cond);

解説

pthread_cond_signal() 関数は、条件変数 cond を待っている 1 つのスレッドのブロックを解除します。

戻り値

問題がない場合は、 pthread_cond_signal() 関数は 0 を返します。 問題がある場合は、そのエラーを示すためにエラー番号が返されます。

エラー

pthread_cond_signal() は以下の場合に失敗します。
[EINVAL]
  cond によって指定された値が無効です。

関連項目

pthread_cond_broadcast(3), pthread_cond_destroy(3), pthread_cond_init(3), pthread_cond_timedwait(3), pthread_cond_wait(3)

規格

pthread_cond_signal()IEEE Std 1003.1-96 ("POSIX.1") に適合しています。

PTHREAD_COND_SIGNAL (3) July 28, 1998

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

Hang in there, people suffering from natural disasters and deadly diseases - we're putting ribbons on our cars as fast as we can
— Artur Bagyants