I forgot to mention, the other solution to timeouts, and that is to use an event-loop system like
. An event loop system will let you setup timers and you can then time other spawned threads. I prefer Glib myself, but see
for possible ready made solutions. Or see
for how to use Glib, but Glib may be a bit hard to install on Win32 without installing Perl/Gtk2.
It is easily installed with