Re: Multithreading stuff
- From: Mark Roberts <gtkmm manumark de>
- To: michi7x7 <mailing-lists michi7x7 de>
- Cc: gtkmm-list gnome org
- Subject: Re: Multithreading stuff
- Date: Sat, 26 Jun 2010 13:35:22 +0200 (CEST)
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]