C# 클래스 OpenStory.Common.AtomicBoolean

Represents a thread-safe Boolean value.
파일 보기 프로젝트 열기: shoftee/OpenStory 1 사용 예제들

공개 메소드들

메소드 설명
AtomicBoolean ( bool initialValue ) : System

Initializes a new instance of the AtomicBoolean class.

FlipIf ( bool comparand ) : bool

Flips the value of the AtomicBoolean if it is equal to the specified boolean value.

Set ( bool newValue ) : void

Sets the value of the AtomicBoolean to the provided value.

ToBoolean ( ) : bool

Extracts a Boolean from an AtomicBoolean instance.

ToBoolean ( AtomicBoolean atomicBoolean ) : bool

Extracts a Boolean from an instance of AtomicBoolean.

메소드 상세

AtomicBoolean() 공개 메소드

Initializes a new instance of the AtomicBoolean class.
public AtomicBoolean ( bool initialValue ) : System
initialValue bool The initial value.
리턴 System

FlipIf() 공개 메소드

Flips the value of the AtomicBoolean if it is equal to the specified boolean value.
public FlipIf ( bool comparand ) : bool
comparand bool The value to compare with.
리턴 bool

Set() 공개 메소드

Sets the value of the AtomicBoolean to the provided value.
public Set ( bool newValue ) : void
newValue bool The new value to assign.
리턴 void

ToBoolean() 공개 메소드

Extracts a Boolean from an AtomicBoolean instance.
public ToBoolean ( ) : bool
리턴 bool

ToBoolean() 공개 정적인 메소드

Extracts a Boolean from an instance of AtomicBoolean.
/// Thrown if is . ///
public static ToBoolean ( AtomicBoolean atomicBoolean ) : bool
atomicBoolean AtomicBoolean The to extract the value of.
리턴 bool