C# 클래스 Akka.Util.AtomicBoolean

Implementation of the java.concurrent.util.AtomicBoolean type. Uses Interlocked.MemoryBarrier internally to enforce ordering of writes without any explicit locking. .NET's strong memory on write guarantees might already enforce this ordering, but the addition of the MemoryBarrier guarantees it.
파일 보기 프로젝트 열기: rogeralsing/akka.net 1 사용 예제들

공개 메소드들

메소드 설명
AtomicBoolean ( bool initialValue = false ) : System.Threading

Sets the initial value of this AtomicBoolean to initialValue.

CompareAndSet ( bool expected, bool newValue ) : bool

If Value equals expected, then set the Value to newValue.

메소드 상세

AtomicBoolean() 공개 메소드

Sets the initial value of this AtomicBoolean to initialValue.
public AtomicBoolean ( bool initialValue = false ) : System.Threading
initialValue bool
리턴 System.Threading

CompareAndSet() 공개 메소드

If Value equals expected, then set the Value to newValue.
public CompareAndSet ( bool expected, bool newValue ) : bool
expected bool
newValue bool
리턴 bool