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:
lock
The function returns one of the following values:
PR_SUCCESS
.PR_FAILURE
.