1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

View server skeleton.

This commit is contained in:
Bartosz Taudul
2017-09-13 01:33:50 +02:00
parent 45646c4f45
commit 953e9c6206
2 changed files with 69 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef __TRACYVIEW_HPP__
#define __TRACYVIEW_HPP__
#include <atomic>
#include <string>
#include <thread>
namespace tracy
{
class View
{
public:
View() : View( "127.0.0.1" ) {}
View( const char* addr );
~View();
private:
void Worker();
std::string m_addr;
std::thread m_thread;
std::atomic<bool> m_shutdown;
};
}
#endif