From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4C1B7EB1.2040006@domain.hid> Date: Fri, 18 Jun 2010 16:12:01 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-core] problem in pthread_mutex_lock/unlock List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nero Fernandez Cc: xenomai@xenomai.org Nero Fernandez wrote: > Hi, > > Please find an archive attached, containing : > - a program for testing context-switch-latency using posix-APIs > for native linux kernel and xenomai-posix-skin (userspace). > - Makefile to build it using xenomai Your program is very long to tell fast. But it seems you are using the mutex as if they were recursive. Xenomai posix skin mutexes used to be recursive by default, but no longer are. Also note that your code does not check the return value of the posix skin services, which is a really bad idea. -- Gilles.