20211219lts02

Signed-off-by: guduhanyan <xuyanjun27@163.com>
This commit is contained in:
guduhanyan
2021-12-19 17:26:21 +08:00
parent 8671bceee5
commit c6cc4afe78
2 changed files with 2 additions and 2 deletions
@@ -29,7 +29,7 @@ public:
void Stop();
private:
void StartTimer();
void RefreshNextTriggerTime();
void RefreshNextTriggerTime();
uint64_t GetMillisecondsFromUTC(uint64_t UTCtimeNano);
uint64_t GetSecondsFromUTC(uint64_t UTCtimeNano);
uint64_t timerId_;
@@ -55,7 +55,7 @@ void TimeTickNotify::Callback(const uint64_t timerId)
DelayedSingleton<TimeServiceNotify>::GetInstance()->PublishTimeTickEvents(currentTime);
timerId_ = timerId;
RefreshNextTriggerTime();
auto startFunc = [this](){
auto startFunc = [this]() {
this->StartTimer();
};
std::thread startTimerThread(startFunc);