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