FreeRDP
Loading...
Searching...
No Matches
sdl_common_utils.hpp
1
20
#pragma once
21
22
#include <cstdlib>
23
#include <memory>
24
25
#include <freerdp/settings_types.h>
26
27
using
CStringPtr = std::unique_ptr<char,
decltype
(std::free)*>;
28
29
bool
operator==(
const
MONITOR_ATTRIBUTES
& l,
const
MONITOR_ATTRIBUTES
& r);
30
bool
operator==(
const
rdpMonitor
& l,
const
rdpMonitor
& r);
31
32
class
WinPREvent
33
{
34
public
:
35
explicit
WinPREvent
(
bool
initial =
false
);
36
WinPREvent
(
const
WinPREvent
& other) =
delete
;
37
WinPREvent
(
WinPREvent
&& other) =
delete
;
38
39
WinPREvent
& operator=(
const
WinPREvent
& other) =
delete
;
40
WinPREvent
& operator=(
WinPREvent
&& other) =
delete
;
41
42
~WinPREvent
();
43
44
void
set();
45
void
clear();
46
[[nodiscard]]
bool
isSet()
const
;
47
48
[[nodiscard]] HANDLE handle()
const
;
49
50
private
:
51
HANDLE _handle;
52
};
53
54
class
CriticalSection
55
{
56
public
:
57
CriticalSection
();
58
CriticalSection
(
const
CriticalSection
& other) =
delete
;
59
CriticalSection
(
CriticalSection
&& other) =
delete
;
60
~CriticalSection
();
61
62
CriticalSection
& operator=(
const
CriticalSection
& other) =
delete
;
63
CriticalSection
& operator=(
const
CriticalSection
&& other) =
delete
;
64
65
void
lock();
66
void
unlock();
67
68
private
:
69
CRITICAL_SECTION
_section{};
70
};
CriticalSection
Definition
sdl_common_utils.hpp:55
CriticalSection::CriticalSection
CriticalSection()
Definition
sdl_common_utils.cpp:23
WinPREvent
Definition
sdl_common_utils.hpp:33
MONITOR_ATTRIBUTES
Definition
settings_types.h:443
rdpMonitor
Definition
settings_types.h:452
RTL_CRITICAL_SECTION
Definition
include/winpr/synch.h:160
client
SDL
common
sdl_common_utils.hpp
Generated by
1.9.8