Lisp HUG Maillist Archive

Is setf atomic?

Hi,

Are a setf on a simple variable, and a setf on a property list (i.e.,  
a (setf getf)), thread-safe (atomic) operations in LispWorks?


Thanks,
Pascal

-- 
Pascal Costanza, mailto:pc@p-cos.net, http://p-cos.net
Vrije Universiteit Brussel, Programming Technology Lab
Pleinlaan 2, B-1050 Brussel, Belgium





Re: Is setf atomic?

Hi

I cannot speak for LW, but I would be surprised if you had assignment  
atomic in a "regular" (for an appropriate definition of "regular")  
programming language.

I can see the advantages of having atomic "general write" operations,  
but then your standard matrix-multiply test would run pretty slowly.

Cheers

marco



On Nov 6, 2007, at 16:09 , Pascal Costanza wrote:

>
> Hi,
>
> Are a setf on a simple variable, and a setf on a property list  
> (i.e., a (setf getf)), thread-safe (atomic) operations in LispWorks?
>
>
> Thanks,
> Pascal
>
> -- 
> Pascal Costanza, mailto:pc@p-cos.net, http://p-cos.net
> Vrije Universiteit Brussel, Programming Technology Lab
> Pleinlaan 2, B-1050 Brussel, Belgium
>
>
>
>



Updated at: 2020-12-10 08:45 UTC