Daniel Schnell wrote: > Hi, > > Gilles Chanteperdrix wrote: > > >>I tested pthread_set_name_np with the "switchtest" program on x86 and >>ARM, and it works. Could you run switchtest on your platform and see >>if the information in /proc/xenomai/sched is correct ? > > > The switchtest program works here correctly as well. Looking at the > switchtest code I found out that one has to call this function _after_ > one has actually created the thread with pthread_create() not like > pthread_attr_setXXXX() functions which have to be called before. After > changing the order in my code, it worked there as well. > > Is this behaviour intended ?
pthread_set_name_np requires a pthread_t argument, and returns ESRCH if this argument is invalid. It is supposed to be documented at: http://www.xenomai.org/documentation/trunk/html/api/group__posix__thread.html#g414a759c928f7be7ac105980d8e73431 -- Gilles Chanteperdrix _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
