From: "Carlo E. Prelz" Date: 2012-12-07T18:18:45+09:00 Subject: Re: how to trigger a thread by event Subject: how to trigger a thread by event Date: Fri 07 Dec 12 06:05:43PM +0900 Quoting XueBrian (brian.xue@hotmail.com): > Here my question is how can I defer the thread execution until > something happened, like an event? I am not sure I understand what you want to do. Threads can be stopped and restarted. If, from within the code of your thread, you call first thing Thread::stop then, whenever you need the execution to restart, you can call t.run from your main process. Look at the example that is returned to you by running. ri Thread::stop HTH Carlo -- * Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)