DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
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
10namespace DotNetDupe {
11 namespace System {
12 namespace Threading {
19 class CriticalSection : public Object {
20 public:
23
26
28 DOTNETDUPE_API void Enter();
29
31 DOTNETDUPE_API void Leave();
32
36
37 private:
38 struct Impl;
39 Impl* m_pImpl;
40 };
41 }
42 }
43}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Base object class for DotNetDupe mirroring .NET System.Object.
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
bool TryEnter()
Attempts to enter a critical section without blocking.
void Enter()
Waits for ownership of the specified critical section object.
void Leave()
Releases ownership of the critical section object.
CriticalSection()
Initializes a new instance of the CriticalSection class.