fix timer log & fix memleak when destroy scheduler

This commit is contained in:
obdev
2023-02-24 16:38:27 +08:00
committed by ob-robot
parent c831acae00
commit b952c226b0
3 changed files with 13 additions and 9 deletions

View File

@ -106,6 +106,7 @@ private:
int schedule_task(ObTimerTask &task, const int64_t delay, const bool repeate, const bool is_scheduled_immediately);
DISALLOW_COPY_AND_ASSIGN(ObTimer);
private:
const static int64_t ELAPSED_TIME_LOG_THREASHOLD = 10 * 60 * 1000 * 1000; // 10 mins
int32_t tasks_num_;
int64_t max_task_num_;
int64_t wakeup_time_;