Re: Hash table thread safety
"Tim Bradshaw (as tfb at cley dot com)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
On 31 Mar 2026, at 15:33, Tim Bradshaw (as tfb at tfeb dot org) <[email protected]> wrote: > > I've also always rather liked macros like > > (defmacro atomically (&body forms) > ;; Not safe in interpreted code I am sure > `(with-lock ((load-time-value (make-lock :name "Atomic" :recursivep t))) > ,@forms)))) ... And every time I write this thing I realise a few hours later that no, that is not the same thing at all as a lock belonging to an object. My brain is tiny. --tim _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html