1
This commit is contained in:
parent
3776467e61
commit
6951fd6f8f
@ -70,10 +70,10 @@ void App::Init(int argc, char* argv[])
|
|||||||
|
|
||||||
if (!ParseOpt()) {
|
if (!ParseOpt()) {
|
||||||
terminated = true;
|
terminated = true;
|
||||||
a8::XPrintf("masterserver启动失败,缺少-i参数\n", {});
|
a8::XPrintf("robotserver启动失败,缺少-i参数\n", {});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
a8::XPrintf("masterserver starting instance_id:%d pid:%d game_id:%d\n", {instance_id, getpid(), GAME_ID});
|
a8::XPrintf("robotserver starting instance_id:%d pid:%d game_id:%d\n", {instance_id, getpid(), GAME_ID});
|
||||||
|
|
||||||
loop_mutex_ = new std::mutex();
|
loop_mutex_ = new std::mutex();
|
||||||
loop_cond_ = new std::condition_variable();
|
loop_cond_ = new std::condition_variable();
|
||||||
@ -89,7 +89,7 @@ void App::Init(int argc, char* argv[])
|
|||||||
f8::HttpClientPool::Instance()->Init(10);
|
f8::HttpClientPool::Instance()->Init(10);
|
||||||
uuid.SetMachineId(instance_id);
|
uuid.SetMachineId(instance_id);
|
||||||
|
|
||||||
a8::UdpLog::Instance()->Info("masterserver starting instance_id:%d pid:%d", {instance_id, getpid()});
|
a8::UdpLog::Instance()->Info("robotserver starting instance_id:%d pid:%d", {instance_id, getpid()});
|
||||||
{
|
{
|
||||||
int perf_log_time = 1000 * 60 * 5;
|
int perf_log_time = 1000 * 60 * 5;
|
||||||
if (getenv("is_dev_env")) {
|
if (getenv("is_dev_env")) {
|
||||||
@ -132,7 +132,7 @@ int App::Run()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
a8::UdpLog::Instance()->Info("masterserver running", {});
|
a8::UdpLog::Instance()->Info("robotserver running", {});
|
||||||
last_run_tick_ = a8::XGetTickCount();
|
last_run_tick_ = a8::XGetTickCount();
|
||||||
int delta_time = 0;
|
int delta_time = 0;
|
||||||
while (!terminated) {
|
while (!terminated) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user