Working away from home for a few days and I'm miles from my own machines (and notes
). Quick question for the fastest help I know 
Got a program that starts two worker threads, mythread1 and mythread2, Both run and do a half a task each so they finish around the same time. From the help files I get the impression I can use WaitForMultipleObjects to continue execution of the main thread once they both return. How does it work? ie, what's the syntax? Currently I'm using a sleepy while/wend loop with Thread Status monitoring the two variables holding the thread ids, ie.
Thanks in advance.


Got a program that starts two worker threads, mythread1 and mythread2, Both run and do a half a task each so they finish around the same time. From the help files I get the impression I can use WaitForMultipleObjects to continue execution of the main thread once they both return. How does it work? ie, what's the syntax? Currently I'm using a sleepy while/wend loop with Thread Status monitoring the two variables holding the thread ids, ie.
Code:
(main program) THREAD CREATE MyThread1(tc) TO e THREAD CREATE MyThread2(tc) TO f THREAD STATUS e TO a THREAD STATUS f TO b WHILE a=259 OR b=259 SLEEP 5 THREAD STATUS e TO a THREAD STATUS f TO b WEND (main program cotinues, hopefully when the threads have completed)
Comment