(defun make-lock (&key (name "lock"))
#+allegro
(mp:make-process-lock :name name)
#+lispworks
(mp:make-lock :name name)
#+sbcl
(sb-thread:make-mutex :name name)
#+openmcl
(ccl:make-lock name)
#-(or allegro lispworks sbcl openmcl)
(not-implemented 'make-lock))
Source Context