mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 15:46:00 +01:00
19 lines
309 B
C++
19 lines
309 B
C++
|
#pragma once
|
||
|
|
||
|
#include "../defines.hpp"
|
||
|
#include <thread>
|
||
|
#include "../Compositor.hpp"
|
||
|
|
||
|
class CThreadManager {
|
||
|
public:
|
||
|
CThreadManager();
|
||
|
~CThreadManager();
|
||
|
|
||
|
private:
|
||
|
|
||
|
void handle();
|
||
|
|
||
|
std::thread* m_tMainThread;
|
||
|
};
|
||
|
|
||
|
inline std::unique_ptr<CThreadManager> g_pThreadManager;
|