Re: Obscure mutex problem
- From: David Given <dg@xxxxxxxxxxx>
- Date: Thu, 06 Sep 2007 23:43:19 +0100
Ulrich Eckhardt wrote:
[...]
It doesn't matter what exception is initially thrown, in the handler it will
be truncated to the baseclass std::exception. Therefore, it will also call
the baseclass' what() function, which won't return the same information as
the one of the exception that was thrown. Yes, you can add all kinds of
handlers for derived exception classes, but what would be the point?
Indeed so. Yup, I'll change that.
[...]
I didn't mean mutexes but the held locks, i.e. lock the mutex in the ctor,
unlock it in the dtor!
Hah! Also a good idea.
Thanks!
--
┌── dg@cowlark.com ─── http://www.cowlark.com ───────────────────
│
│ "There does not now, nor will there ever, exist a programming language in
│ which it is the least bit hard to write bad programs." --- Flon's Axiom
.
- References:
- Obscure mutex problem
- From: David Given
- Re: Obscure mutex problem
- From: Ulrich Eckhardt
- Re: Obscure mutex problem
- From: David Given
- Re: Obscure mutex problem
- From: Ulrich Eckhardt
- Obscure mutex problem
- Prev by Date: gstreamer x-fade
- Next by Date: Re: Obscure mutex problem
- Previous by thread: Re: Obscure mutex problem
- Next by thread: Re: Obscure mutex problem
- Index(es):