This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: destroying a locked mutex


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]