Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::memory::LockedExchange64 Function
C++
MEM_PROC _64 MEM_API LockedExchange64(PV_64 p, _64 val);
Parameters 
Description 
PV_64 p 
pointer to a volatile 64 bit value. 
_64 val 
a new 64 bit value to put at (*p) 

Multi-processor safe exchange operation. Returns the prior value at the pointer.

_64 value = 13;
_64 oldvalue = LockedExchange64( &value, 15 );
// old value will be 13
// value will be 15
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!