Subject: Re: Unlocking an unlocked mutex
To: None <tech-kern@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-kern
Date: 10/12/2005 23:12:28
On Wed, Oct 12, 2005 at 10:12:16PM +0200, Vincent wrote:
> I was wondering if unlocking an (already) unlocked mutex *really* 
> deserves an error, or if it could just be turned into a non-fatal 
> warning or whatever. Obviously, this is not as critical as trying to 
> unlock another thread's mutex.

In a better world it would actually be fatal. Just think about it,
the code has unbalanced critical sections :-)

Joerg