class · System.Threading

ManualResetEvent

public class System.Threading.ManualResetEvent : System.Any

An event that stays set until Reset: WaitOne returns at once while it is set.

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

Inheritance

Base classes
Any ManualResetEvent
Derived types
AutoResetEvent

Constructors

constructor ManualResetEvent(initialState: bool)
#

Properties

property IsSet: bool
#

read-only

Methods

method Set() -> void
#
method Reset() -> void
#
method WaitOne() -> void
#

virtual

method WaitOne(milliseconds: i32) -> bool
#

virtual

Waits at most milliseconds: whether it was set.

method Dispose() -> void
#

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

Fields

field mutex: System.Threading.Mutex
#

inherited

field changed: System.Threading.Condition
#

inherited

field set: bool
#

inherited

Inherited members (5)

Source

ManualResetEvent as Larva HIR, decompiled from its Larva HIR.

System.Threading.ManualResetEvent.hir
// An event that stays set until Reset: WaitOne returns at once while it is set.
public class System.Threading.ManualResetEvent : System.Any
{
    field mutex: System.Threading.Mutex
    field changed: System.Threading.Condition
    field set: bool
    constructor ManualResetEvent(initialState: bool)
    method Set() -> void
    method Reset() -> void
    method WaitOne() -> void
    // Waits at most `milliseconds`: whether it was set.
    method WaitOne(milliseconds: i32) -> bool
    // Frees what it holds (it must not be used after).
    method Dispose() -> void
    property IsSet: bool
}
Esc