GetAndSet function (corresponding to cas function)

Adrian Mercieca amercieca at gmail.com
Sun Dec 25 05:39:01 PST 2011


On Sun, 25 Dec 2011 13:37:32 +0100, Mike Wey wrote:

> On 12/25/2011 09:25 AM, Adrian Mercieca wrote:
>> Hi folks,
>>
>> Is there a GetAndSet function (corresponding to cas (compare and set)
>> function) in D?
>>
>> Thanks.
> 
> core.atomic.cas
> 
> http://dlang.org/phobos/core_atomic.html#cas

I know of the cas function in D.

I was asking if there was a getAndSet function.

Tks.


More information about the Digitalmars-d-learn mailing list