I have a task that perform sequential logic, and I want to stop this task from performing its logic from another task. Is there a way to do that without causing a rendezvous?
How can I suspend the task?
Thanks in advance.
I have a task that perform sequential logic, and I want to stop this
Share
You can use Asynchronous Transfer of Control and put the part you want to stop into the abortable_part, or directly use abort to kill the task.
If you use GNAT, you could have a look at the GNAT.Tasking package.