Message-ID: <1362975314.45141.YahooMailNeo@web161406.mail.bf1.yahoo.com> Date: Sun, 10 Mar 2013 21:15:14 -0700 (PDT) From: Tom Z MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Xenomai] how to install a "preemption hook"? Reply-To: Tom Z List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "xenomai@xenomai.org" Hi,=0A=0AI am using native APIs to do some development and have a question = recently. I have a task A with a medium priority, so during A's execution, = it could be preempted by higher-priority tasks or interrupts. What I want t= o do is to install a hook so that whenever A is preempted, this hook is exe= cuted immediately after A is preempted, but before the execution of the tas= k that preempts A.=0A=0AHow can I accomplish this goal? Any ideas would be = highly appreciated.=0A=0ATom