From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4DB5191A.9020801@domain.hid> Date: Mon, 25 Apr 2011 08:47:54 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4DB4DA61.9070906@domain.hid> In-Reply-To: <4DB4DA61.9070906@domain.hid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Calling rt_task_shadow from a POSIX thread with --enable-dlopen-skins List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Simon Leonard Cc: xenomai@xenomai.org Simon Leonard wrote: > I have code based on the POSIX skin. For a (python related) reason, I > had to re-compile Xenomai with --enable-dlopen-skins. The result is that > unless I call rt_task_shadow, my threads don't work like they used to. Mmmm. Normally, without --enable-dlopen-skins, only the main thread is automatically made real-time. > > Although I *think* my code works by mixing rt_task_shadow with the POSIX > skin I'm not convinced that it is legit. Can anybody advise? It works, but, there are services in the POSIX skin which will only work if the thread is a posix skin thread, not if it is a native skin thread. Anyway, you can use pthread_setschedparam instead of rt_task_shadow. -- Gilles.