C# Class RampUp.Atomics.AtomicInt

A wrapper around an address under which int is stored. Besides Read, Write provides threadsafe access with possible Aquire-Release Fence semantics.
Datei anzeigen Open project: Scooletz/RampUp

Public Methods

Method Description
AtomicInt ( byte ptr ) : System
ToString ( ) : string
VolatileWrite ( int value ) : void
Write ( int value ) : void

Private Methods

Method Description
CompareExchange ( int value, int comparand ) : long
Read ( ) : int
VolatileRead ( ) : int

Method Details

AtomicInt() public method

public AtomicInt ( byte ptr ) : System
ptr byte
return System

ToString() public method

public ToString ( ) : string
return string

VolatileWrite() public method

public VolatileWrite ( int value ) : void
value int
return void

Write() public method

public Write ( int value ) : void
value int
return void