From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <478BC989.6020103@domain.hid> Date: Mon, 14 Jan 2008 21:43:53 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <200801141627.32289.peter.soetens@domain.hid> In-Reply-To: <200801141627.32289.peter.soetens@domain.hid> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Philippe Gerum Subject: Re: [Xenomai-help] Is rt_task_set_mode( T_PRIMARY, 0, 0 ) temporary ? Reply-To: rpm@xenomai.org List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Soetens Cc: xenomai@xenomai.org Peter Soetens wrote: > Hi, > > Is it possible that this call only clears the T_PRIMARY flag temporary, and > that after 'some' rt_ call, the flag is set again ? > Any potentially blocking rt-syscall for instance, occurring between rt_task_set_mode() and rt_task_inquire(), would indeed switch the thread back to primary, clearing the XNRELAX bit from the status. > I tried to check this with rt_task_inquire( task, &info ) and check > info.status & XNRELAX but that always returned false. > > Peter