On 05/09/2013 05:35 PM, alex alex wrote:
> So here is the code:
>
> void *thread2(void *cookie)
> {
> /* ... */
> }
>
> int create_thread(pthread_t* t, const char* name, void *(*)(void *) funct,
> void* arg)
> {
> /* ... */
> pthread_create(t, ..., funct, arg);
> /* ... */
>
> pthread_set_name_np(t, name);
> /* ... */
> }
>
> int *thread(void *cookie)
> {
> pthread_t tid1;
> pthread_t tid2;
>
> create_thread(&tid1, "name1", thread2, NULL);
> create_thread(&tid2, "name2", thread2, NULL);
>
> /* ... */
>
> pthread_cancel(&tid1);
> pthread_cancel(&tid2);
>
> /* ... */
> }
>
> The name "name1" "name2" are not stored in a variable.
Ok, could you test the problematic code with the current contents of
xenomai git ?
git://git.xenomai.org/xenomai-2.6.git
branch master
--
Gilles.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai