Yes with the xenomai-2.5 branch latest as of 1900 UTC everything works without 
error including the mutex-torture tests (output below):

r...@mcs2:/usr/xenomai/bin# ./mutex-torture-native
simple_wait
recursive_wait
timed_mutex
mode_switch
pi_wait
lock_stealing
NOTE: lock_stealing mutex_trylock: not supported
simple_condwait
recursive_condwait
Test OK
r...@mcs2:/usr/xenomai/bin# ./mutex-torture-posix 
simple_wait
recursive_wait
errorcheck_wait
timed_mutex
mode_switch
pi_wait
lock_stealing
NOTE: lock_stealing mutex_trylock: not supported
simple_condwait
recursive_condwait
Test OK
r...@mcs2:/usr/xenomai/bin# 

pthread_set_mode_np(NULL, PTHREAD_WARNSW) also works with this branch. Thank 
you for the help.

--

John

-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]] 
Sent: Monday, March 08, 2010 1:47 PM
To: Charlton, John
Cc: '[email protected]'; xenomai-core
Subject: Re: [pull request] Fixes and workarounds for the cond issues

Charlton, John wrote:
> I configured and built with linux-2.6.32.7 and xenomai-jki for-upstream 
> snapshot: f98569c8eec5df605f806ff58e789668720805ee. I noticed that you 
> removed the PTHREAD_WARNSW so I removed the call to pthread_set_mode_np to 
> remove the following errors:
> 
> PosixThread/PosixThread.cpp:1607: error: 'PTHREAD_WARNSW' was not 
> declared in this scope
> PosixThread/PosixThread.cpp:1607: error: 'pthread_set_mode_np' was not 
> declared in this scope

This should come with #include <pthread.h>, provided you use xeno-config 
--posix-cflags (soon to be deprecated way) or xeno-config --skin=posix --cflags 
to get the compilation flags.

> 
> I am able to run all of my user space application code and unit test
code which uses CanFestival open source CAN library. I am also able to run the 
xeno-test which runs to completion with no errors. When I run the mutex-torture 
tests I still get the following errors which I have not looked into in more 
detail yet:
> 
> 
> r...@mcs2:/usr/xenomai/bin# ./mutex-torture-native simple_wait 
> recursive_wait timed_mutex
> FAILURE: timed_waiter, waited 4.110 us r...@mcs2:/usr/xenomai/bin# 
> ./mutex-torture-posix simple_wait recursive_wait errorcheck_wait 
> timed_mutex
> FAILURE: timed_mutex mutex_destroy: 22 (Invalid argument)
> 
> I am now looking at xenomai-rpm branch which one is close to 2.5.2 release?

the master branch of the xenomai-2.5 repository. As explained here:
http://www.xenomai.org/index.php/Main_Page

in the "Fetching the source code repositories"

-- 
                                            Gilles.

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Reply via email to