We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


Jump to:

Releases a specified lock object. Releasing an unlocked lock results in an error.

Attempting to release a lock that was locked by a different thread causes undefined behavior.


#include <prlock.h>

PRStatus PR_Unlock(PRLock *lock);


PR_Unlock has one parameter:

A pointer to a lock object to be released.


The function returns one of the following values:

  • If successful, PR_SUCCESS.
  • If unsuccessful (for example, if the caller does not own the lock), PR_FAILURE.

See Also

Document Tags and Contributors

 Contributors to this page: cpeterson, teoli, Jorend, Callek, alecananian
 Last updated by: cpeterson,