compare_and_exchange_pointer
Description:
public static bool compare_and_exchange_pointer<G> (unowned G** aptr, G old_ptr, owned G _new_ptr, size_t mask = 0, size_t old_mask = 0, size_t new_mask = 0)
Compares and exchanges objects.
Parameters:
aptr |
Atomic pointer. |
old_ptr |
Old pointer. |
_new_ptr |
New value. |
old_mask |
Old mask. |
new_mask |
New mask. |
Returns:
Value that was previously stored. |