Skip to content

Commit

Permalink
change the Empty() logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cheniujh committed Jul 18, 2024
1 parent 0409f3f commit b01e41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/src/net_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class TimerTaskManager {
int64_t ExecTimerTask();
bool DelTimerTaskByTaskId(uint32_t task_id);
int64_t NowInMs();
bool Empty() const { return 0 == last_task_id_; }
bool Empty() const { return exec_queue_.empty(); }
private:
//items stored in std::set are ascending ordered, we regard it as an auto sorted queue
std::set<ExecTsWithId> exec_queue_;
Expand Down

0 comments on commit b01e41a

Please sign in to comment.