Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
ThreadWorker.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <thread>
4
5namespace shkyera {
6
13 public:
19
25
30 void run();
31
32 private:
33 std::thread _thread;
34 std::atomic<bool> _stop{false};
35};
36
37} // namespace shkyera
Definition ThreadWorker.hpp:12
std::atomic< bool > _stop
Definition ThreadWorker.hpp:34
ThreadWorker()
Definition ThreadWorker.cpp:8
std::thread _thread
Definition ThreadWorker.hpp:33
void run()
Definition ThreadWorker.cpp:16
~ThreadWorker()
Definition ThreadWorker.cpp:10
Definition Asset.hpp:6