From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A26B6E7.9060201@domain.hid> Date: Wed, 03 Jun 2009 19:46:15 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] turn an rt_task back to linux user space List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pedro Queiros Cc: xenomai@xenomai.org Pedro Queiros wrote: > Hi, > I would like to know if the is any way to turn a xenomai task, which > was shadowed from a linux thread with the rt_task_shadow(), back to > the linux user space (kill the rt_task and continue the linux thread > execution after that). > I tried the function rt_task_delete() but it ends the rt_task and > exits the linux thread without returning to Linux user space. In theory, it would be possible, however it has not been implemented and is not an easy task, and is not in an urgent position on the todo list. So, in short, you will have to find another way (you can for instance, pthread_create a new thread from the real-time task context, right before it dies, the new thread doing the task you wanted to do after killing it). -- Gilles.