mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
上传项目代码
This commit is contained in:
21
src/app/Application.cpp
Normal file
21
src/app/Application.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "Application.h"
|
||||
|
||||
#include "common/Utils.h"
|
||||
|
||||
void Application::init()
|
||||
{
|
||||
std::thread([=]()
|
||||
{
|
||||
while (!isQuit()) { runThreadMain(); }
|
||||
}).detach();
|
||||
}
|
||||
|
||||
void Application::runThreadMain()
|
||||
{
|
||||
static TimeTick tt;
|
||||
tt.elapse(1000);
|
||||
|
||||
//XLOGD() << "HelloWorld";
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
}
|
||||
Reference in New Issue
Block a user