Search Results for

    Show / Hide Table of Contents

    Class AutoResetEvent

    Notifies a waiting thread that an event has occurred. This class cannot be inherited.

    Inheritance
    object
    MarshalByRefObject
    WaitHandle
    AutoResetEvent
    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 AutoResetEvent : WaitHandle

    Constructors

    AutoResetEvent(bool)

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

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

    true to set the initial state to signaled; false to set the initial state to non-signaled.

    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