class · System.Threading

CountdownEvent

public class System.Threading.CountdownEvent : System.Any

Set once it has been signaled initialCount times: Wait waits for that.

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

Inheritance

Base classes
Any CountdownEvent

Constructors

constructor CountdownEvent(initialCount: i32)
#

Properties

property CurrentCount: i32
#

read-only

property IsSet: bool
#

read-only

Methods

method Signal() -> bool
#

One signal: whether that made it zero.

method AddCount() -> void
#

One more signal to wait for.

method Wait() -> void
#
method Wait(milliseconds: i32) -> bool
#
method Dispose() -> void
#

Frees what it holds (it must not be used after).

Private and internal members (2)

private

private

Inherited members (5)

Source

CountdownEvent as Larva HIR, decompiled from its Larva HIR.

System.Threading.CountdownEvent.hir
// Set once it has been signaled `initialCount` times: Wait waits for that.
public class System.Threading.CountdownEvent : System.Any
{
    field left: System.Threading.AtomicI32
    field zero: System.Threading.ManualResetEvent
    constructor CountdownEvent(initialCount: i32)
    // One signal: whether that made it zero.
    method Signal() -> bool
    // One more signal to wait for.
    method AddCount() -> void
    method Wait() -> void
    method Wait(milliseconds: i32) -> bool
    // Frees what it holds (it must not be used after).
    method Dispose() -> void
    property CurrentCount: i32
    property IsSet: bool
}
Esc