Just a quick question, im (trying) to write a thread wrapper to provide me with a method of giving threads "timeout" functionality. This is done by a bit of cooperative programming, ie, signals sent to other threads to tell them when to stop. The basic problem is that I do not necessarily want to have to wait for each thread in turn to return to the main process, but wait for ANY processes to return, and then, after a certain time, drop the rest and carry on. I guess this is quite specific to our project, but does this kind of functionality exist?
At present I am basically executing two threads for every one, one is a wrapper of the real thread library adding a couple of extra methods (isRunning(), Signal(), etc) and another thread that just loops until a time limit is reached of isRunning is zero. As far as we can see, this is probably the simplest way of doing things, but if anyone has experience of doing this kind of thing, or information of forthcoming features in iThreads, then I would appreciate such information Ray.
