AsyncAutoResetEvent Constructors

Definition

Overloads

AsyncAutoResetEvent()

Initializes a new instance of the AsyncAutoResetEvent class that does not inline awaiters.

AsyncAutoResetEvent(Boolean)

Initializes a new instance of the AsyncAutoResetEvent class.

AsyncAutoResetEvent()

Initializes a new instance of the AsyncAutoResetEvent class that does not inline awaiters.

C++/CX
public:
 AsyncAutoResetEvent();

Applies to

Visual Studio SDK 2022 i druge verzije
Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022

AsyncAutoResetEvent(Boolean)

Initializes a new instance of the AsyncAutoResetEvent class.

C++/CX
public:
 AsyncAutoResetEvent(bool allowInliningAwaiters);

Parameters

allowInliningAwaiters
Boolean

A value indicating whether to complete the task synchronously in the Set() method, as opposed to asynchronously. false better simulates the behavior of the AutoResetEvent class, but true can result in slightly better performance.

Remarks

Setting the allowInliningWaiters parameter to false simulates the behavior of the AutoResetEvent class, but setting it to true can result in slightly better performance.

Applies to

Visual Studio SDK 2022 i druge verzije
Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022