I have task A that calls task B.
At some pint task B is terminated but task A doesn't know that and calls now terminated task B.
Since task B is terminated calling it from task A terminates task A.
How can I check if task B is terminated from task A?
If it matters I am using GNAT Programming Studio.
I could make a global variable that is set by B before termination, but I would rather find out state of B from A.
You can check for B'Terminated, see RM 9.9