Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::memory::LockedExchange64 Function
C++
MEM_PROC PTRSZVAL MEM_API LockedExchange64(PVPTRSZVAL p, PTRSZVAL val);
Parameters 
Description 
PVPTRSZVAL p 
a pointer to a 64 bit value to replace. 
PTRSZVAL val 
the value to replace into p 

the value previously in p.

multi-processor safe exchange the value in a 64 bit variable with another value.

_64 variable = 0;
_64 oldvalue = InterlockedExchange64( &variable, 1 );
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!