Name
mp:make-lock
— Create a new lock.
Function
(mp:make-lock
&key) ⇒ name)
name
| A symbol to name the lock. Names not be unique. It defaults
to NIL . |
Description
This function creates a lock object that can be use to synchronize
different tasks. The own is initally free and not owned by any task. Locks
are typically implemented using Posix mutexes. When garbage collected, a lock
is automatically freed.