This is the mail archive of the
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:
[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.
From: Scott McCaskill [mailto:email@example.com]
Sent: July 24, 2001 12:15 PM
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).