atomicRefCountCompare

fnbool atomicRefCountCompare(ref int arc, int val)

Atomically compares the current value of arc with val.

Parameters

arcthe address of an atomic reference count variable
valthe value to compare

Returns

true if the reference count is the same

as the given value