这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Common/Scheduler/SchedulerRoot.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,11 @@ class SchedulerRoot final : public ISchedulerNode
}

Resource * current = nullptr; // round-robin pointer
std::unordered_map<ISchedulerNode *, Resource> children; // resources by pointer
std::atomic<bool> stop_flag = false;
EventQueue events;
/// Resources by pointer. Must be destroyed before the "events",
/// because the descructor of ISchedulerNode might access the mutex in that queue.
std::unordered_map<ISchedulerNode *, Resource> children;
ThreadFromGlobalPool scheduler;
};

Expand Down
Loading