Faro Engine 0.0.0.b519570 (main)
Loading...
Searching...
No Matches
MainThread.hpp
Go to the documentation of this file.
1#pragma once
2#include "Application.hpp"
3#include "Thread.hpp"
4
5namespace Faro
6{
8 {
9 public:
10 static String id;
11
12 String GetThreadId() override { return id; }
13
14 int Run();
15
16 protected:
17 void ThreadInit() override {}
18 void ThreadUpdate() override {}
19 void ThreadDestroy() override {}
20
21 private:
22 Application app;
23 bool running = false;
24 };
25}
Definition Application.hpp:6
Abstract interface of a thread.
Definition Thread.hpp:24
Definition MainThread.hpp:8
int Run()
Definition MainThread.cpp:8
void ThreadInit() override
Executed while starting the thread.
Definition MainThread.hpp:17
static String id
Definition MainThread.hpp:10
void ThreadDestroy() override
Executed when the thread is being stopped.
Definition MainThread.hpp:19
String GetThreadId() override
Definition MainThread.hpp:12
void ThreadUpdate() override
Executed while the thread is active.
Definition MainThread.hpp:18
Definition String.hpp:12
Definition Array.hpp:8