[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_shared()

Release a shared lock on a pmd_attr_t structure

Synopsis:

#include <sys/pm.h>

int pmd_unlock_shared(pmd_attr_t *pmd); 

Library:

libpm

Description:

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.

Returns:

EOK
Success.
Error code from pthread_sleepon_lock(), pthread_sleepon_unlock() or pthread_sleepon_signal().
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()


[Previous] [Contents] [Next]