simple fix for cancel core block dep is released when call

This commit is contained in:
yiguolei
2024-05-16 06:32:21 +08:00
parent e4b9ded806
commit 4ba15b27ca

View File

@ -139,6 +139,9 @@ public:
int task_id() const { return _index; };
void clear_blocking_state() {
// Another thread may call finalize to release all dependencies
// And then it will core.
std::unique_lock<std::mutex> lc(_release_lock);
if (!_finished && get_state() != PipelineTaskState::PENDING_FINISH && _blocked_dep) {
_blocked_dep->set_ready();
_blocked_dep = nullptr;