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(Int32, Boolean)
    WaitHandle.WaitOne()
    WaitHandle.WaitAll(WaitHandle[], Int32, Boolean)
    WaitHandle.WaitAll(WaitHandle[])
    WaitHandle.WaitAny(WaitHandle[], Int32, Boolean)
    WaitHandle.WaitAny(WaitHandle[])
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: System.Threading
    Assembly: mscorlib.dll
    Syntax
    public sealed class ManualResetEvent : WaitHandle

    Constructors

    ManualResetEvent(Boolean)

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

    Declaration
    public extern ManualResetEvent(bool initialState)
    Parameters
    Type Name Description
    Boolean 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 extern bool Reset()
    Returns
    Type Description
    Boolean

    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 extern bool Set()
    Returns
    Type Description
    Boolean

    true if the operation succeeds; otherwise, false.

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018 nanoFramework Contributors
    Generated by DocFX