From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48B570AF.4090900@domain.hid> Date: Wed, 27 Aug 2008 17:20:15 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <48B5592B.1090005@domain.hid> <48B55F7C.5030901@domain.hid> <48B56685.4060500@domain.hid> In-Reply-To: <48B56685.4060500@domain.hid> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] [RFC][PATCH 2/3] Switch to handle-based fast mutex owners List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: gilles.chanteperdrix@xenomai.org Cc: xenomai-core Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> + xnarch_atomic_set(mutex->owner, >> + set_claimed(xnthread_handle(owner), >> + xnsynch_nsleepers(&mutex->synchbase))); > > Ok. I think you have spotted a bug here. This should be mutex->sleepers > instead of xnsynch_nsleepers. BTW, why do you need to track sleepers separately in POSIX? Native doesn't do so, e.g. Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux