[Previous] [Contents] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

pmd_unlock_exclusive()

Release an exclusive lock on a pmd_attr_t structure

Synopsis:

#include <sys/pm.h>

int pmd_unlock_exclusive(pmd_attr_t *pmd); 

Arguments:

pmd
Pointer to the pmd_attr_t structure that is locked.

Library:

libpm

Description:

The pmd_unlock_exclusive() release an exclusive lock held on a pmd_attr_t structure.

The lock implements an "exclusive preference" so that a thread blocked in pmd_lock_exclusive() is unblocked in preference to threads blocked in pmd_lock_shared().

Returns:

EOK
Success.
Error code from pthread_sleepon_lock(), pthread_sleepon_unlock(), pthread_sleepon_signal(), pthread_sleepon_broadcast().
An error has occurred.

Examples:

For more information, see the device driver chapter.

Classification:

Neutrino

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

See also:

pmd_lock_shared(), pmd_lock_exclusive(), pthread_sleepon_lock(), pthread_sleepon_unlock(), pthread_sleepon_signal(), pthread_sleepon_broadcast(),


[Previous] [Contents] [Next]