Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* recursive mutex locks in posix threads
@ 1996-04-25  4:00 Terence Cross
  1996-04-29  4:00 ` Dave Butenhof
  0 siblings, 1 reply; 2+ messages in thread
From: Terence Cross @ 1996-04-25  4:00 UTC (permalink / raw)


Hi,
In the OSF1 (Digital Unix) posix threads package
there is a recursive mutex.
This is not supposed to be used
as the lock for a condition variable
because if recursion is > 1 
then the coniditional wait
will fail to unlock the mutex.
So fast mutexes are suggested.

However, for recursive mutexes,
why did the conditional not simply unlock 
the recursive mutex many times 
until it was free.  Store that number
on the stack.  On return pop the number
and lock it that many times.

rgs,
/Terence Cross.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-04-29  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-25  4:00 recursive mutex locks in posix threads Terence Cross
1996-04-29  4:00 ` Dave Butenhof

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox