ISharedPointer.AtomicCompareAndSwap (METH)ΒΆ

METHOD AtomicCompareAndSwap : BOOL

Assign the new located to the shared pointer, if the current content of the shared pointer is equal to other one (itfExpected).

InOut:

Scope

Name

Type

Comment

Return

AtomicCompareAndSwap

BOOL

TRUE => pointer changed. FALSE => pointer not changed.

Input

itfExpected

ISharedPointer

xwAddress

__XWORD

The new memory location, this pointer should pointing to

Output

eErrorID

ERROR