Re: Hash table thread safety
Martin Simmons <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
>>>>> On Mon, 30 Mar 2026 19:52:29 +0100, Tim Bradshaw (as tfb at tfeb dot org) said: > > Am I correct in my reading of the LW manuals that hash-table operations are > always thread-safe in the sense of 'you can't destroy the table'? It looks > like they are also atomic, but I don't need that. Yes, that is correct (as long as you don't pass :single-thread t). I don't know what your definition of 'you can't destroy the table' is, but thread-safety also covers transient problems like ensuring that gethash will find an existing value even if the table is rehashed simultanously by another thread. -- Martin Simmons LispWorks Ltd http://www.lispworks.com/ _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html