tail head cat sleep
QR code linking to this page

manページ  — PTHREAD_RWLOCK_DESTROY

名称

pthread_rwlock_destroy – 読取り / 書込みロックの破壊

内容

ライブラリ

Reentrant C\~Library (libc_r, -lc_r)

書式

#include <pthread.h>

int
pthread_rwlock_destroy(pthread_rwlock_t *lock);

解説

pthread_rwlock_destroy() 関数は、以前に pthread_rwlock_init() で作成された読取り / 書込みロックを破壊するために使用されます。

戻り値

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

関連項目

pthread_rwlock_init(3)

規格

pthread_rwlock_destroy() 関数は、 Version 2 of the Single UNIX Specification に適合しているはずです。

エラー

pthread_rwlock_destroy() 関数は、以下の場合に失敗します。
[EPERM]
  呼び出し側が、その操作を実行するための権利を持っていません。

pthread_rwlock_destroy() 関数は、以下の場合に失敗することがあります。
[EBUSY]
  lock によって参照されているオブジェクトをロックされている間に、 破壊しようとしていることを、システムが検出しました。
[EINVAL]
  lock によって指定された値が無効です。

歴史

pthread_rwlock_destroy() 関数は、 FreeBSD 3.0 ではじめて登場しました。

PTHREAD_RWLOCK_DESTROY (3) August 4, 1998

tail head cat sleep
QR code linking to this page


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

Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology.
— The Unix Haters' handbook