class · System.Threading

AtomicBool

public class System.Threading.AtomicBool : System.Any

A bool that threads change together.

Kind
class
Namespace
System.Threading
Assembly
System.Core
Access
public, final
Source file
Threading.ant

Inheritance

Base classes
Any AtomicBool

Constructors

constructor AtomicBool()
#
constructor AtomicBool(value: bool)
#

Properties

property Value: bool
#

Methods

method Load() -> bool
#
method Store(v: bool) -> void
#
method Exchange(v: bool) -> bool
#
method CompareExchange(v: bool, comparand: bool) -> bool
#

Sets v if the value is comparand: the value before.

Private and internal members (1)

private

Inherited members (5)

Source

AtomicBool as Larva HIR, decompiled from its Larva HIR.

System.Threading.AtomicBool.hir
// A bool that threads change together.
public class System.Threading.AtomicBool : System.Any
{
    field bits: System.Threading.AtomicI32
    constructor AtomicBool()
    constructor AtomicBool(value: bool)
    method Load() -> bool
    method Store(v: bool) -> void
    method Exchange(v: bool) -> bool
    // Sets `v` if the value is `comparand`: the value before.
    method CompareExchange(v: bool, comparand: bool) -> bool
    property Value: bool
}
Esc