yiguolei commented on code in PR #56755:
URL: https://github.com/apache/doris/pull/56755#discussion_r2428704215
##########
be/src/pipeline/dependency.h:
##########
@@ -131,6 +132,19 @@ class Dependency : public
std::enable_shared_from_this<Dependency> {
_shared_state->sink_deps.front()->set_ready();
}
+ void remove_blocked_task(const std::shared_ptr<PipelineTask>& task) {
+ std::unique_lock<std::mutex> lc(_task_lock);
+ auto it = std::ranges::find_if(_blocked_task, [&](const
std::weak_ptr<PipelineTask>& ptr) {
+ auto sp = ptr.lock();
+ return sp == task;
+ });
+
+ if (it == _blocked_task.end()) {
+ return;
+ }
+ _blocked_task.erase(it);
Review Comment:
跟那个wakeup 的方法的改动一样
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]