Search Results for

    Show / Hide Table of Contents

    Class ManualResetEvent

    Notifies one or more waiting threads that an event has occurred. This class cannot be inherited.

    Inheritance
    object
    MarshalByRefObject
    WaitHandle
    ManualResetEvent
    Inherited Members
    WaitHandle.WaitTimeout
    WaitHandle.WaitOne(int, bool)
    WaitHandle.WaitOne()
    WaitHandle.WaitAll(WaitHandle[], int, bool)
    WaitHandle.WaitAll(WaitHandle[])
    WaitHandle.WaitAny(WaitHandle[], int, bool)
    WaitHandle.WaitAny(WaitHandle[])
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: System.Threading
    Assembly: mscorlib.dll
    Syntax
    public sealed class ManualResetEvent : WaitHandle

    Constructors

    ManualResetEvent(bool)

    Initializes a new instance of the ManualResetEvent class with a Boolean value indicating whether to set the initial state to signaled.

    Declaration
    public ManualResetEvent(bool initialState)
    Parameters
    Type Name Description
    bool initialState

    true to set the initial state signaled; false to set the initial state to nonsignaled.

    Methods

    Reset()

    Sets the state of the event to nonsignaled, causing threads to block.

    Declaration
    public bool Reset()
    Returns
    Type Description
    bool

    true if the operation succeeds; otherwise, false.

    Set()

    Sets the state of the event to signaled, allowing one or more waiting threads to proceed.

    Declaration
    public bool Set()
    Returns
    Type Description
    bool

    true if the operation succeeds; otherwise, false.

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX