taskflow / taskflow

A General-purpose Parallel and Heterogeneous Task Programming System

Home Page:https://taskflow.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to quickly terminate a running flow? Some flows may contain dead loop tasks

willstudy opened this issue · comments

Our flow will run user-defined code, including dead loops。

RequestCancellation can not kill dead loops。

Use POSIX pthread instead of std::thread? pthread_cancel kill dead loops task?

Perhaps a code example showing your problem might be better for me to understand what a dead loop means. The termination of Taskflow should have no dependency on this scenario.