Nebula
Loading...
Searching...
No Matches
Threading::Interlocked::AtomicInt Struct Reference

#include <interlocked.h>

Public Member Functions

int Add (int add)
 Add.
 
int Sub (int sub)
 Subtract.
 
int Or (int mask)
 Or.
 
int And (int mask)
 And.
 
int Exchange (int value)
 Exchange.
 
int CompareExchange (int exchange, int comparand)
 Compare and exchange.
 
int Increment (int incr)
 Increment and return new value.
 
int Decrement (int decr)
 Decrement and return new value.
 

Private Attributes

volatile int value
 

Member Function Documentation

◆ Add()

int Threading::Interlocked::AtomicInt::Add ( int add)
inline

Add.

◆ And()

int Threading::Interlocked::AtomicInt::And ( int mask)
inline

And.

◆ CompareExchange()

int Threading::Interlocked::AtomicInt::CompareExchange ( int exchange,
int comparand )
inline

Compare and exchange.

◆ Decrement()

int Threading::Interlocked::AtomicInt::Decrement ( int decr)
inline

Decrement and return new value.

◆ Exchange()

int Threading::Interlocked::AtomicInt::Exchange ( int value)
inline

Exchange.

◆ Increment()

int Threading::Interlocked::AtomicInt::Increment ( int incr)
inline

Increment and return new value.

◆ Or()

int Threading::Interlocked::AtomicInt::Or ( int mask)
inline

Or.

◆ Sub()

int Threading::Interlocked::AtomicInt::Sub ( int sub)
inline

Subtract.

Member Data Documentation

◆ value

volatile int Threading::Interlocked::AtomicInt::value
private

The documentation for this struct was generated from the following file: