Hi,
Gilles Chanteperdrix wrote: > You should set the threads stack size with pthread_attr_setstacksize > (as other pthread_attr_set* functions, it should be used on a > previously initialized pthread_attr_t structure), ulimit -s only set > the stack size of the main thread, at least on some architectures. pthread_attr_setstacksize() doesn't work for us. The system still does allocate the default linux stack size. Whereas ulimit -s sets the stack size for all created threads correctly. Can this confirm somebody with an mpc5200B based board (e.g. icecube, lite5200) ? > This is probably unrelated to the errors you see, but: > - passing the pthread_mutex_t by value is not supposed to work; once > a pthread_mutex_t is initialized with pthread_mutex_init, you should > pass the address of the very same pthread_mutex_t to other functions > of the API. Hmm, this is mystique to me. pthread_mutex_t is a structure returned by value from within MutexCreate(). Passing structures back by value doesn't do harm to them. Also the pthread_mutex function seem to operate normally. Best regards, Daniel Schnell. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
