Nebula
Loading...
Searching...
No Matches
Threading::Interlocked Namespace Reference

Classes

struct  AtomicInt
 
struct  AtomicInt64
 
struct  AtomicPointer
 

Functions

int Add (int volatile *var, int add)
 interlocked add
 
int64 Add (int64 volatile *var, int64 add)
 interlocked add 64
 
int Or (int volatile *var, int value)
 interlocked or
 
int64 Or (int64 volatile *var, int64 value)
 interlocked or
 
int And (int volatile *var, int value)
 interlocked and
 
int64 And (int64 volatile *var, int64 value)
 interlocked and
 
int Xor (int volatile *var, int value)
 interlocked xor
 
int64 Xor (int64 volatile *var, int64 value)
 interlocked xor
 
int Exchange (int volatile *dest, int value)
 interlocked exchange
 
int64 Exchange (int64 volatile *dest, int64 value)
 interlocked exchange
 
int CompareExchange (int volatile *dest, int exchange, int comparand)
 interlocked compare-exchange
 
int64 CompareExchange (int64 volatile *dest, int64 exchange, int64 comparand)
 interlocked compare-exchange
 
void * ExchangePointer (void *volatile *dest, void *value)
 interlocked exchange
 
void * CompareExchangePointer (void *volatile *dest, void *exchange, void *comparand)
 interlocked compare-exchange pointer
 
int Increment (int volatile *var)
 interlocked increment, return result
 
int Decrement (int volatile *var)
 interlocked decrement, return result
 
int64 Increment (int64 volatile *var)
 interlocked increment, return result
 
int64 Decrement (int64 volatile *var)
 interlocked decrement, return result
 

Function Documentation

◆ Add() [1/2]

int Threading::Interlocked::Add ( int volatile * var,
int add )

interlocked add

◆ Add() [2/2]

int64 Threading::Interlocked::Add ( int64 volatile * var,
int64 add )

interlocked add 64

◆ And() [1/2]

int Threading::Interlocked::And ( int volatile * var,
int add )

interlocked and

◆ And() [2/2]

int64 Threading::Interlocked::And ( int64 volatile * var,
int64 add )

interlocked and

◆ CompareExchange() [1/2]

int Threading::Interlocked::CompareExchange ( int volatile * dest,
int exchange,
int comparand )

interlocked compare-exchange

◆ CompareExchange() [2/2]

int64 Threading::Interlocked::CompareExchange ( int64 volatile * dest,
int64 exchange,
int64 comparand )

interlocked compare-exchange

◆ CompareExchangePointer()

void * Threading::Interlocked::CompareExchangePointer ( void *volatile * dest,
void * exchange,
void * comparand )

interlocked compare-exchange pointer

◆ Decrement() [1/2]

int Threading::Interlocked::Decrement ( int volatile * var)

interlocked decrement, return result

◆ Decrement() [2/2]

int64 Threading::Interlocked::Decrement ( int64 volatile * var)

interlocked decrement, return result

◆ Exchange() [1/2]

int Threading::Interlocked::Exchange ( int volatile * dest,
int value )

interlocked exchange

◆ Exchange() [2/2]

int64 Threading::Interlocked::Exchange ( int64 volatile * dest,
int64 value )

interlocked exchange

◆ ExchangePointer()

void * Threading::Interlocked::ExchangePointer ( void *volatile * dest,
void * value )

interlocked exchange

◆ Increment() [1/2]

int Threading::Interlocked::Increment ( int volatile * var)

interlocked increment, return result

◆ Increment() [2/2]

int64 Threading::Interlocked::Increment ( int64 volatile * var)

interlocked increment, return result

◆ Or() [1/2]

int Threading::Interlocked::Or ( int volatile * var,
int add )

interlocked or

◆ Or() [2/2]

int64 Threading::Interlocked::Or ( int64 volatile * var,
int64 add )

interlocked or

◆ Xor() [1/2]

int Threading::Interlocked::Xor ( int volatile * var,
int add )

interlocked xor

◆ Xor() [2/2]

int64 Threading::Interlocked::Xor ( int64 volatile * var,
int64 add )

interlocked xor