apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: pthread_mutex_unlock called on unlocked mutex
Date Tue, 30 Jul 2002 17:04:32 GMT
On Thu, Jun 20, 2002 at 01:53:57AM +0100, Philip Martin wrote:
> Attempting to unlock an unlocked mutex is probably harmless on some
> (all?) pthread implementations, but I don't think it's good practice
> to do it.  What benefit can there be?  If there is a reason for doing
> it, then such use of undefined behaviour should be documented.  As it
> currently stands, an application that quite properly ensures that its
> mutexes are not in use when they are destroyed unwittingly invokes
> undefined behaviour.

Committed, thanks.


View raw message