This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Release an exclusive lock on a pmd_attr_t structure
#include <sys/pm.h> int pmd_unlock_exclusive(pmd_attr_t *pmd);
libpm
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().
For more information, see the device driver chapter.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pmd_lock_shared(), pmd_lock_exclusive(), pthread_sleepon_lock(), pthread_sleepon_unlock(), pthread_sleepon_signal(), pthread_sleepon_broadcast(),