[Xenomai-help] How to get pid in Xenomai?

2008-08-21 Thread Hans Søndergaard (HSO)
Hello. 1) Can you tell me, how to get the task id for the current (running) rt_task? I have tried to use getpid(), but this function always gives the same id as result. I am running several periodic rt_tasks and need their id's. 2) In Xenomai the priority inheritance protocol is implemented. Safe

Re: [Xenomai-help] How to get pid in Xenomai?

2008-08-21 Thread Gilles Chanteperdrix
Hans Søndergaard (HSO) wrote: > Hello. > 1) Can you tell me, how to get the task id for the current (running) rt_task? > I have tried to use getpid(), but this function always gives the same id as > result. > I am running several periodic rt_tasks and need their id's. You can use rt_task_self() o