You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Aaron Bannert <aa...@clove.org> on 2002/07/30 19:04:32 UTC

Re: pthread_mutex_unlock called on unlocked mutex

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.

-aaron