From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48B2E115.4070107@domain.hid> Date: Mon, 25 Aug 2008 18:43:01 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <48B2D1C4.5010306@domain.hid> In-Reply-To: <48B2D1C4.5010306@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] Fast native mutexes vs. RT_MUTEX_INFO.lockcnt Reply-To: rpm@xenomai.org List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: xenomai-core Jan Kiszka wrote: > Hi, > > next issue on my way towards fast native mutexes: as mutexes are now > mostly acquired in user space, the recursion counter lockcnt will only > be maintained in the context of the owning thread (at best: its process) > in user space. No update on the kernel-side lockcnt will take place > anymore, thus rt_mutex_inquire can only return 0 or 1, no > 1. Is it OK > to break the ABI here? > I think so, we might lose some debug information, but that's the price for much better performances. I can't imagine any sane code iterating lockcnt-times blindly to unlock a mutex it owns until it is free. Nah, of course not... Btw, I guess that the /proc information about mutexes would have to be reworked as well. > Jan > -- Philippe.