Scieneer Common Lisp 1.3.9 online documentation

thread:make-read-write-lock &optional name &key kind auto-free interruptible[Function]

Make a pthread-rwlock based lock, returning a lisp thread:read-write-lock object encapsulating the pthread-rwlock structure. The lock :kind may be either :prefer-reader or :prefer-writer. When :auto-free is t, the pthread-rwlock structure will be automatically freed when the lisp object is no longer accessible, and reallocated when lisp is restarted. When :auto-free is :note, the lock is noted and reallocated upon restart, but is not be automatically freed.