From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/elisp/mutexes.html | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 devdocs/elisp/mutexes.html (limited to 'devdocs/elisp/mutexes.html') diff --git a/devdocs/elisp/mutexes.html b/devdocs/elisp/mutexes.html deleted file mode 100644 index 094c6247..00000000 --- a/devdocs/elisp/mutexes.html +++ /dev/null @@ -1,18 +0,0 @@ -

Mutexes

A mutex is an exclusive lock. At any moment, zero or one threads may own a mutex. If a thread attempts to acquire a mutex, and the mutex is already owned by some other thread, then the acquiring thread will block until the mutex becomes available.

Emacs Lisp mutexes are of a type called recursive, which means that a thread can re-acquire a mutex it owns any number of times. A mutex keeps a count of how many times it has been acquired, and each acquisition of a mutex must be paired with a release. The last release by a thread of a mutex reverts it to the unowned state, potentially allowing another thread to acquire the mutex.

Function: mutexp object -

This function returns t if object represents an Emacs mutex, nil otherwise.

-
Function: make-mutex &optional name -

Create a new mutex and return it. If name is specified, it is a name given to the mutex. It must be a string. The name is for debugging purposes only; it has no meaning to Emacs.

-
Function: mutex-name mutex -

Return the name of mutex, as specified to make-mutex.

-
Function: mutex-lock mutex -

This will block until this thread acquires mutex, or until this thread is signaled using thread-signal. If mutex is already owned by this thread, this simply returns.

-
Function: mutex-unlock mutex -

Release mutex. If mutex is not owned by this thread, this will signal an error.

-
Macro: with-mutex mutex body… -

This macro is the simplest and safest way to evaluate forms while holding a mutex. It acquires mutex, invokes body, and then releases mutex. It returns the result of body.

-
-

- Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
- https://www.gnu.org/software/emacs/manual/html_node/elisp/Mutexes.html -

-
-- cgit v1.2.3