bug-commoncpp
[Top][All Lists]
Advanced

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

ost::Thread


From: David Durham
Subject: ost::Thread
Date: Tue, 29 Jan 2002 16:11:06 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221

I would suggest a try/catch(exception)/catch(...) around the exec handler for the thread... Sure, it should be left up to the derived class to catch exceptions, but its exception handler could accidently cause another throw which would not be caught... I cannot remember, but I think a segfault occurs when an uncaught exception occurs in a thread; but it probably depends on the thread library being used. If it were put into ost::Thread's exec handler, it should catch 'std::exception' and probably print e.what() to stderr and abort(). and just print some error message in the ... handler and abort.

Just a thought; it was something I did in my thread class

-- Davy




reply via email to

[Prev in Thread] Current Thread [Next in Thread]