DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
CriticalSection.h
Go to the documentation of this file.
1
5
6
#pragma once
7
#include "
Common.h
"
8
#include "
System/Object.h
"
9
10
namespace
DotNetDupe
{
11
namespace
System
{
12
namespace
Threading
{
19
class
CriticalSection
:
public
Object
{
20
public
:
22
DOTNETDUPE_API
CriticalSection
();
23
25
DOTNETDUPE_API
~CriticalSection
()
override
;
26
28
DOTNETDUPE_API
void
Enter
();
29
31
DOTNETDUPE_API
void
Leave
();
32
35
DOTNETDUPE_API
bool
TryEnter
();
36
37
private
:
38
struct
Impl;
39
Impl* m_pImpl;
40
};
41
}
42
}
43
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
Object.h
Base object class for DotNetDupe mirroring .NET System.Object.
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
DotNetDupe::System::Threading::CriticalSection::TryEnter
bool TryEnter()
Attempts to enter a critical section without blocking.
Definition
CriticalSection.cpp:37
DotNetDupe::System::Threading::CriticalSection::Enter
void Enter()
Waits for ownership of the specified critical section object.
Definition
CriticalSection.cpp:23
DotNetDupe::System::Threading::CriticalSection::Leave
void Leave()
Releases ownership of the critical section object.
Definition
CriticalSection.cpp:30
DotNetDupe::System::Threading::CriticalSection::CriticalSection
CriticalSection()
Initializes a new instance of the CriticalSection class.
Definition
CriticalSection.cpp:13
DotNetDupe::System::Threading
Definition
AbandonedMutexException.h:11
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
Threading
CriticalSection.h
Generated by
1.18.0