[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem (bug?) with recursive mutex's
From: |
Duncan Palmer |
Subject: |
Re: problem (bug?) with recursive mutex's |
Date: |
Wed, 03 Oct 2001 12:09:28 +0100 |
Duncan Palmer wrote:
>
> Hi all,
>
> I'm using libpthreads-0.9 and glibc-2.2.2 on x86 (redhat 7.1), and
> StrongARM. I've got some code which has uses a recursive mutex, which is
> held most of the time by one thread, but other threads which try to lock
> the mutex are unable to. If i just use a fast mutex, everything is fine
^^^^
Sorry, that should say timed mutex (the default)
> (tho unfortunately, i really do need a recursive one).
>
> I've attached a simple test case which reproduces the problem - it only
> occurs when there is contention on the mutex, hence the usleep()...
>
> The problem does not occur with libpthreads-0.8
>
> Does anyone have any thoughts on this?
>
> Cheers,
> Dunk.
>
> --
> Duncan Palmer
> address@hidden
> Software Design Engineer Phone:
> +353-1-2911561
> Silicon and Software Systems Fax:
> +353-1-2911001
>
> ------------------------------------------------------------------------
> Name: thread.c
> thread.c Type: C Source file (application/x-unknown-content-type-cfile)
> Encoding: base64
--
Duncan Palmer
address@hidden
Software Design Engineer Phone:
+353-1-2911561
Silicon and Software Systems Fax:
+353-1-2911001