From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Giorgio Buffa" Date: Thu, 23 Jul 2015 10:07:40 +0200 Message-ID: <00a901d0c51e$a62a1190$f27e34b0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Language: it Subject: [Xenomai] How to use timer services without switching to secondary mode? List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Hello list! I have to write a Xenomai 2.6.4 thread that is activated upon the expiration of a (periodic) timer. It is not clear to me how to do that without switching to secondary mode. I would like to stick with the POSIX skin but, in my understanding, with the POSIX skin, using the `timer_create()` and `timer_settime()` I will switch to secondary mode on timer expiration, because a signal is generated by that event. Is it correct? On the other hand, the switching to secondary mode does not happens using the Native Xenomai API, i.e. `rt_alarm_create()` and `rt_alarm_start()`. Am I wrong? What are the options available for that purpose? Should I use the `pthread_make_periodic_np()` instead? What are the differences wrt `timer_*` calls? Thank you for the support and kind regards, Giorgio B.