tail head cat sleep
QR code linking to this page

manページ  — PTHREAD_MUTEX_DESTROY

名称

pthread_mutex_destroy – mutex のために割り当てられたリソースの解放

内容

ライブラリ

Reentrant C\~Library (libc_r, -lc_r)

書式

#include <pthread.h>

int
pthread_mutex_destroy(pthread_mutex_t *mutex);

解説

pthread_mutex_destroy() 関数は、 mutex のために割り当てられたリソースを解放します。

戻り値

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

エラー

pthread_mutex_destroy() は以下の場合に失敗します。
[EINVAL]
  mutex によって指定された値が無効です。
[EBUSY]
  mutex が別のスレッドにロックされています。

関連項目

pthread_mutex_init(3), pthread_mutex_lock(3), pthread_mutex_trylock(3), pthread_mutex_unlock(3)

規格

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

PTHREAD_MUTEX_DESTROY (3) July 29, 1998

tail head cat sleep
QR code linking to this page


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

Computer science would have progressed much further and faster if all of the time and effort that has been spent maintaining and nurturing Unix had been spent on a sounder operating system.
— The Unix Haters' handbook