| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Next]](../next.gif) | 
|  | This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Upgrade a shared lock to an exclusive lock on a pmd_attr_t structure
#include <sys/pm.h> int pmd_lock_upgrade(pmd_attr_t *pmd);
libpm
The pmd_lock_upgrade() converts a shared lock to an exclusive lock.
If there are other shared locks currently held, pmd_lock_upgrade() block until those locks are released. Any new attempts to acquire the shared lock is prevented and 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(), pthread_sleepon_lock(), pthread_sleepon_unlock(), pthread_sleepon_wait()
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Next]](../next.gif) |