This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Reentrant Mutex
- To: Fabrice_Gautier at sdesigns dot com
- Subject: Re: [ECOS] Reentrant Mutex
- From: Bart Veer <bartv at redhat dot com>
- Date: Fri, 4 Aug 2000 18:01:51 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- References: <21DDE8E5343ED411840A00A0CC334020104816@EXCHANGE5_5>
- Reply-to: bartv at redhat dot com
>>>>> "Fabrice" == Fabrice Gautier <Fabrice_Gautier@sdesigns.com> writes:
Fabrice> I would like to have a reentrant mutex structure. Do you
Fabrice> think there will have one someday in eCos ?
This came up on ecos-discuss a little while back, see
http://sources.redhat.com/ml/ecos-discuss/2000-06/msg00333.html
As far as I am concerned the standard eCos kernel mutexes are unlikely
ever to support recursive locking, partly because of the overheads
involved and partly because the whole concept of a recursive mutex is
flawed.
As reported by Boris, it is relatively straightforward to implement
recursive mutexes using the primitives provided by eCos. The kernel
could support such recursive mutexes via a separate C++ class plus
matching C API functions, as opposed to overloading the existing mutex
support, but that would be a decision for the kernel folks.
Bart Veer // eCos net maintainer