Unlocks a simple lock.
#include <sys/lock_def.h>
void simple_unlock ( lock_addr)
simple_lock_t lock_addr;
Item | Description |
---|---|
lock_addr | Specifies the address of the lock word to unlock. |
The simple_unlock kernel service unlocks the specified simple lock. The lock must be held by the thread which calls the simple_unlock kernel service. Once the simple lock is unlocked, the highest priority thread (if any) which is waiting for it is made runnable, and may compete for the lock again. If at least one kernel thread was waiting for the lock, the priority of the calling kernel thread is recomputed.
The simple_unlock kernel service can be called from the process environment only.
The simple_unlock kernel service has no return values.