Topic: Synchronization of the timer and flows
There is a worker thread. It launches a child flow - an interrupt handler from the timer. In the output agent I see 2 methods - to wait for a signal from the timer function WaitForMultipleObjects... Or to wait APC from the timer function SleepEx with parameter infinite. What method is better? As the flow hangs up indefinitely long it is necessary to complete a method it at an output from the main (ancestor) flow. to it with _endthreadex () in the output agent or SetEvent to a child flow and to wait its termination? Can eat other methods? Except terminatethread certainly Compatibility is necessary at level .