Function: mutex-name

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

Signature

(mutex-name MUTEX)

Documentation

Return the name of MUTEX.

If no name was given when MUTEX was created, return nil.

View in manual

Probably introduced at or before Emacs version 26.1.

Source Code

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

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

  return lmutex->name;
}