terminate call adds one callback to each port to detect when the queue
is emptied. To account for this and any previously enqueued callbacks,
dispatch is continually called until it returns false.
Shows how to terminate a task queue with XTaskQueueTerminate, keep dispatching manual ports until XTaskQueueDispatch returns false, then close the handle.
terminate call adds one callback to each port to detect when the queue
is emptied. To account for this and any previously enqueued callbacks,
dispatch is continually called until it returns false.