Subject: pthread_mutex_unlock() question.
To: None <netbsd-users@netbsd.org>
From: Andrew Gillham <gillham@vaultron.com>
List: netbsd-users
Date: 05/16/2003 23:30:27
Hello,

I'm trying to get Asterisk (the opensource PBX) up and running on my
NetBSD/i386 box.

I'm running into a problem where pthread_mutex_unlock() is getting
called twice for the same mutex, which causes libpthread to kill the
process.
"
Error detected, file "/usr/src/lib/libpthread/pthread_mutex.c", line 339, function "pthread_mutex_unlock": Unlocking unlocked mutex.
Abort trap (core dumped)
"

What I would like to know, is what is the proper way to check whether
the mutex is already unlocked?

Thanks.

-Andrew