Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.
/ cl-lockable Public archive

Locking/synchronization helper functions and classes for Common Lisp

License

Notifications You must be signed in to change notification settings

zerth/cl-lockable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lockable

Locking/synchronization helper functions and classes for Common Lisp.

Usage:

(defclass foo (lockable:lockable)
  ((bar :initform nil)))

(defun update-foo (obj new-bar)
  (lockable:with-thing-locked obj
    (setf (slot-value obj 'bar) new-bar)))
(defvar *sessions* (lockable:make-lockable-hash-table))

(defun record-session (id obj)
  (lockable:with-lockable-hash-table-locked (ht *sessions*)
    (setf (gethash id ht) obj)))

About

Locking/synchronization helper functions and classes for Common Lisp

Resources

License

Stars

Watchers

Forks

Packages

No packages published