exchange_pointer
Description:
public static G exchange_pointer<G> (unowned G** aptr, owned G new_ptr, size_t mask = 0, size_t new_mask = 0, out size_t old_mask = null)
Exchange objects safely.
Parameters:
aptr |
Atomic pointer. |
new_ptr |
New value |
mask |
Mask of flags. |
new_mask |
New mask. |
old_mask |
Previous mask mask. |
Returns:
Value that was previously stored. |