On 06/24/2012 01:12 PM, Roland Stigge wrote: > Original Report (the report at the above link contains the example file): > > Package: xenomai > Version: 2.6.0 > > Kernel:2.6.38.8 - Xenomai:2.6.0 > arch:i686 i386 GNU/Linux > > Hi, > > The attached code shows a malfunction of the pthread_mutex_trylock function. > > > Description of test.c: > The main task takes the mutex during 1second while the 't1' task tries > to take this mutex from 0.5sc. > We can notice that with the posix skin of xenomai, t1 never succeeded to > take the mutex, which is not the case without the posix skin of xenomai. > > > > Duchesne Alexandre > [email protected]
pthread_mutex_trylock is know to be broken in Xenomai 2.6.0, this has been fixed in xenomai current development branch. See patches: http://git.xenomai.org/?p=xenomai-2.6.git;a=commitdiff;h=a0822a77ba383dac832253e6f0ca3431860a5661;hp=b3af76a4dc4cc2282fb83cdfeb9c454a1242a125 http://git.xenomai.org/?p=xenomai-2.6.git;a=commitdiff;h=de094a9e580511eb2dfdc0cee78bf92c959e2c55;hp=28256f3937c80f25fd6f49394a4ffb5d7b3179c7 -- Gilles. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

