DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
AutoResetEvent.h
Go to the documentation of this file.
1
5
6
#pragma once
7
#include "
System/Threading/EventWaitHandle.h
"
8
#include "
System/SmartPointer.h
"
9
10
namespace
DotNetDupe
{
11
namespace
System
{
12
namespace
Threading
{
19
class
AutoResetEvent
:
public
EventWaitHandle
{
20
public
:
23
DOTNETDUPE_API
AutoResetEvent
(
bool
initialState);
24
29
DOTNETDUPE_API
AutoResetEvent
(
const
String
& sName,
bool
initialState =
false
,
bool
openAlways =
true
);
30
35
DOTNETDUPE_API
AutoResetEvent
(
bool
initialState,
const
String
& sName,
bool
openAlways =
true
);
36
42
DOTNETDUPE_API
AutoResetEvent
(
bool
initialState,
const
String
& sName,
bool
openAlways,
bool
& bCreatedNew);
43
48
DOTNETDUPE_API
static
SmartPointer<AutoResetEvent>
OpenExisting
(
const
String
& sName);
49
54
DOTNETDUPE_API
static
bool
TryOpenExisting
(
const
String
& sName,
SmartPointer<AutoResetEvent>
& pResult);
55
};
56
}
57
}
58
}
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
EventWaitHandle.h
Represents a thread synchronization event supporting automatic and manual reset modes.
SmartPointer.h
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
DotNetDupe::System::SmartPointer
A unified smart pointer that supports both unique and shared ownership semantics.
Definition
SmartPointer.h:72
DotNetDupe::System::String
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition
String.h:74
DotNetDupe::System::Threading::AutoResetEvent::AutoResetEvent
AutoResetEvent(bool initialState)
Initializes a new instance of the AutoResetEvent class with a Boolean value indicating whether to set...
Definition
AutoResetEvent.cpp:13
DotNetDupe::System::Threading::AutoResetEvent::TryOpenExisting
static bool TryOpenExisting(const String &sName, SmartPointer< AutoResetEvent > &pResult)
Opens an existing named system auto-reset event, and returns a value that indicates whether the opera...
Definition
AutoResetEvent.cpp:43
DotNetDupe::System::Threading::AutoResetEvent::OpenExisting
static SmartPointer< AutoResetEvent > OpenExisting(const String &sName)
Opens an existing named system auto-reset event.
Definition
AutoResetEvent.cpp:34
DotNetDupe::System::Threading::EventWaitHandle::EventWaitHandle
EventWaitHandle(bool initialState, bool manualReset)
Initializes a new instance of the EventWaitHandle class, specifying whether the wait handle is initia...
Definition
EventWaitHandle.cpp:26
DotNetDupe::System::Threading
Definition
AbandonedMutexException.h:11
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
Threading
AutoResetEvent.h
Generated by
1.18.0