|
NAMEpthread_mutex_consistent —
mark state protected by robust mutex as consistent
LIBRARYPOSIX Threads Library (libpthread, -lpthread)SYNOPSIS#include <pthread.h>
int
DESCRIPTIONIf the process containing the thread owning a robust mutex terminates while holding the mutex, the mutex becomes inconsistent and the next thread that acquires the mutex lock is notified of the state by the return valueEOWNERDEAD . In this case, the mutex does not become
normally usable again until the state is marked consistent.
The If the mutex in the inconsistent state is not marked consistent by
the call to RETURN VALUESIf successful,pthread_mutex_consistent () will return
zero, otherwise an error number will be returned to indicate the error.
ERRORSThepthread_mutex_lock () function will fail if:
SEE ALSOpthread_mutex_init(3), pthread_mutex_lock(3), pthread_mutex_unlock(3), pthread_mutexattr_setrobust(3)STANDARDSThepthread_mutex_lock () function conforms to
Version 4 of the Single UNIX Specification
(“SUSv4”).
Visit the GSP FreeBSD Man Page Interface. |