From: Terence Cross <tcross@iona.com>
Subject: recursive mutex locks in posix threads
Date: 1996/04/25 [thread overview]
Message-ID: <317FB0E9.76AB@iona.com> (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.
next reply other threads:[~1996-04-25 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-25 4:00 Terence Cross [this message]
1996-04-29 4:00 ` recursive mutex locks in posix threads Dave Butenhof
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox