Function: SB-THREAD:RELEASE-MUTEX¶
Release MUTEX by setting it to NIL. Wake up threads waiting for this mutex.
RELEASE-MUTEX is not interrupt safe: interrupts should be disabled around calls to it.
If the current thread is not the owner of the mutex then it silently returns without doing anything (if IF-NOT-OWNER is :PUNT), signals a WARNING (if IF-NOT-OWNER is :WARN), or releases the mutex anyway (if IF-NOT-OWNER is :FORCE).
Lambda list¶
(sb-thread:mutex &key sb-thread::if-not-owner)