class · System.Threading

CountdownEvent

public class System.Threading.CountdownEvent : System.Any

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

Tipo
class
Espacio de nombres
System.Threading
Ensamblado
System.Core
Acceso
public, final
Archivo fuente
Threading.ant

Herencia

Clases base
Any CountdownEvent

Constructores

constructor CountdownEvent(initialCount: i32)
#

Propiedades

property CurrentCount: i32
#

read-only

property IsSet: bool
#

read-only

Métodos

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).

Miembros privados e internos (2)

private

private

Miembros heredados (5)

Código fuente

CountdownEvent en Larva HIR, descompilado a partir de su 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