From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <518BC2C3.3080004@xenomai.org> Date: Thu, 09 May 2013 17:37:39 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <518A5F0C.50403@xenomai.org> <518ABA3D.5070106@xenomai.org> <518B8C50.2050107@xenomai.org> <518BA407.8020103@xenomai.org> <518BAF44.9060803@xenomai.org> <518BB895.3050208@xenomai.org> <518BBFDC.7060102@xenomai.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] [Posix] I/O multiplexing with select List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alex alex Cc: Xenomai 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.