void task_thread(){ create and run task thread1 create and run task thread2 .......... create and run waiting thread } void wait_thread(){ while (!result) Sleep(100); ........... }
Report message to a moderator