FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
sdl_common_utils.hpp
1
20#pragma once
21
22#include <freerdp/settings_types.h>
23
24bool operator==(const MONITOR_ATTRIBUTES& l, const MONITOR_ATTRIBUTES& r);
25bool operator==(const rdpMonitor& l, const rdpMonitor& r);
26
28{
29 public:
30 explicit WinPREvent(bool initial = false);
31 WinPREvent(const WinPREvent& other) = delete;
32 WinPREvent(WinPREvent&& other) = delete;
33
34 WinPREvent& operator=(const WinPREvent& other) = delete;
35 WinPREvent& operator=(WinPREvent&& other) = delete;
36
38
39 void set();
40 void clear();
41 [[nodiscard]] bool isSet() const;
42
43 [[nodiscard]] HANDLE handle() const;
44
45 private:
46 HANDLE _handle;
47};
48
50{
51 public:
53 CriticalSection(const CriticalSection& other) = delete;
54 CriticalSection(CriticalSection&& other) = delete;
56
57 CriticalSection& operator=(const CriticalSection& other) = delete;
58 CriticalSection& operator=(const CriticalSection&& other) = delete;
59
60 void lock();
61 void unlock();
62
63 private:
64 CRITICAL_SECTION _section{};
65};