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.
Afficher le fichier Open project: Scooletz/RampUp

Méthodes publiques

Méthode Description
AtomicInt ( byte ptr ) : System
ToString ( ) : string
VolatileWrite ( int value ) : void
Write ( int value ) : void

Private Methods

Méthode Description
CompareExchange ( int value, int comparand ) : long
Read ( ) : int
VolatileRead ( ) : int

Method Details

AtomicInt() public méthode

public AtomicInt ( byte ptr ) : System
ptr byte
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

VolatileWrite() public méthode

public VolatileWrite ( int value ) : void
value int
Résultat void

Write() public méthode

public Write ( int value ) : void
value int
Résultat void