[Previous] [Contents] [Next]

pthread_rwlockattr_destroy()

Destroy a read-write lock attribute object

Synopsis:

#include <pthread.h>

int pthread_rwlockattr_destroy( 
       pthread_rwlockattr_t* attr );

Library:

libc

Description:

The pthread_rwlockattr_destroy() function destroys a read-write lock attribute object created by pthread_rwlockattr_init(). Don't use a destroyed read-write lock attribute object unless it's been reinitialized with pthread_rwlockattr_init().

Returns:

EOK
Success.
EINVAL
Invalid object specified by attr.

Classification:

Standard Unix

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pthread_rwlockattr_getpshared(), pthread_rwlockattr_init(), pthread_rwlockattr_setpshared()


[Previous] [Contents] [Next]