Method lfun::_atomic_get_set()


Method _atomic_get_set

mixed _atomic_get_set(mixed index, mixed value)

Description

Get and set the value for an index atomically.

Parameter index

Index for which to get and set the value.

Parameter value

Value to set.

Returns

Returns the previous value at index index.

See also

lfun::`->=(), lfun::`[]=(), atomic_get_set(), lfun::_m_delete(), lfun::`[](), lfun::`->()