Hi, Is there a way to wait for a certain task to terminate?
There is no explicit function that I know of, but you could put at the end of the task a notification (either direct to task or using a semaphore/queue) that the other task waits for.
Perhaps you could you could implement a trace macro in the task delete trace hook that did something like write the handle of the task being deleted to a queue, then block on the queue until the handle of the task of interest showed up in it.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.