Re: Multithreading stuff



Dear michi7x7 and Michael,

void kill_me()
{
   throw(new AbortException() );
}

According to "Effective C++" by Scott Meyers this should read

	throw (AbortException());

because of memory management. And other recourses, if the exception class were complicated.

void thread_func()
{
 signal_kill.connect(sigc::ptr_fun(&kill_me));

 doSomethingTricky();
}

What does Michael's doSomethingTricky() have to call so that kill_me() really gets called when the Dispatcher is triggered? Note that thread_func() is not in any event loop.

Mark


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]