Hello all, I was wondering about the scope of try...catch constructions over threads. An example (very simplified example of existing code, where the Main_thread acts like a scheduler and the Worker_Threads are the 'processes'):
Main_thread
{
try {
// Launch some Worker_threads
}
catch( ... ) {
// Do some actions
}
}
Worker_thread
{
try {
// The executing code, which might also execute
// the throw-function.
}
catch( condition ) {
// Do some actions, but continue operation
}
catch( ... ) {
// Do some actions
throw( something ); // should be catched in Main_Thread
}
}
Is it possible to (or 'how to') catch the last throw from the Worker_thread into the Main_thread? What is the nice way to do this? Thanks in advance, EiSl