This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Release a shared lock on a pmd_attr_t structure
#include <sys/pm.h> int pmd_unlock_shared(pmd_attr_t *pmd);
libpm
The pmd_unlock_shared() releases a shared lock on a pmd_attr_t structure.
If this is the last shared lock and threads are blocked in pmd_lock_shared(), one of those threads will be unblocked.
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()