Function: mutex-unlock

mutex-unlock is a function defined in thread.c.

Signature

(mutex-unlock MUTEX)

Documentation

Release the mutex.

If this thread does not own MUTEX, signal an error. Otherwise, decrement the mutex's count. If the count is zero, release MUTEX.

Source Code

// Defined in /usr/src/emacs/src/thread.c
{
  struct Lisp_Mutex *lmutex;

  CHECK_MUTEX (mutex);
  lmutex = XMUTEX (mutex);

  flush_stack_call_func (mutex_unlock_callback, lmutex);
  return Qnil;
}