From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <493BF43B.4080208@domain.hid> Date: Sun, 07 Dec 2008 17:05:15 +0100 From: Wolfgang Grandegger MIME-Version: 1.0 References: <493306F5.2080605@domain.hid> <49330CD3.4090700@domain.hid> <4933BAE2.3000502@domain.hid> <4933F1A4.8060209@domain.hid> <4933F18F.7080103@domain.hid> <4933FE5A.5060501@domain.hid> <49355B5D.8070802@domain.hid> <49355A59.4050600@domain.hid> <49357C02.1090001@domain.hid> <49358003.1080705@domain.hid> In-Reply-To: <49358003.1080705@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] pthread cancelation and scheduling magics List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai-help Hi Gilles, Gilles Chanteperdrix wrote: > Wolfgang Grandegger wrote: >> I'm also puzzled why pthread_setschedparam() does make a mode switch >> to secondary mode (sometimes). > > That is normal. The glibc caches threads priority value, so we have to > call __real_pthread_setschedparam to update them. This issue has been > solved differently on trunk, but unfortunately, we can not backport this > modification on v2.4.x branch. To get you right. With v2.4.x it is not possible with the POSIX skin to change the priority of a real-time thread in the primary mode without loosing determinism (because it will switch to secondary mode). What options do I have? Wolfgang.