getAndSetVolatileSlot

Store the AvailObject in the specified slot of the receiver, and answer the value that was previously in that slot. Use atomic write semantics that are compatible with volatile access. Note that this may answer nil if it's used on an unassigned variable's value slot.

Return

The previous value from the specified slot.

Parameters

field

An enumeration value that defines the field ordering.

anAvailObject

The object to store at the specified slot.