Sack Library Documentation
ContentsIndexReferenceHome
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
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!