This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
RE: destroying a locked mutex
- To: 'Scott McCaskill' <scott at magruder dot org>, pthreads-win32 at sources dot redhat dot com
- Subject: RE: destroying a locked mutex
- From: "Bossom, John" <John dot Bossom at Cognos dot COM>
- Date: Tue, 24 Jul 2001 13:04:14 -0400
The book, Programming with POSIX Threads indicates that
pthread_mutex_destroy has the
following return values:
Errors:
[EBUSY] mutex is in use.
[EINVAL] mutex is invalid.
Hint: Safets after unlocking mutex, when no other threads will lock.
Multithreaded Programmin with PThreads:
[EBUSY] Attempt to destroy a locked mutex.
-----Original Message-----
From: Scott McCaskill [mailto:scott@magruder.org]
Sent: July 24, 2001 12:15 PM
To: pthreads-win32@sources.redhat.com
Subject: destroying a locked mutex
Should pthread_mutex_destroy() return an error if the mutex is locked?
pthreads-win32 seems to disagree with the linux implementation of pthreads
on this point (OK on windows, not on linux).