Can a thread use message communication as well as one-shot timers?

Paolo Mantegazza mantegazza at aero.polimi.it
Fri Oct 12 09:04:03 CEST 2007


Aref Taidi wrote:
> Hello everyone,
> 
> I have a hard realtime user space thread that uses rt_receivex() to
> receive messages from other threads. I would also like to start a
> oneshot timer from this thread to check things out every second, so that
> in between the thread can receive messages.
> 
> Following some examples in the showroom I make the following calls with
> appropriate parameters (omitted below) in this order:
> 
> rt_task_init_schmod();
> mlockall();
> rt_grow_and_lock_stack();
> rt_make_hard_real_time();
> rt_task_use_fpu(netman_task, 1); 
> start_rt_timer(0);
> rt_init_timer();
> rt_insert_timer();
> 
> But the above causes the PC to hang needing a reboot. But if I don't use
> the last 3 function calls everything works, but I won't have a timer!!
> Please can someone tell me what I am doing wrong?
> 

Difficult to say. The flow is important but the call params might be 
relevant too. Since it seems you are testing something simple senda 
small test showing your troubles, as usual.

Paolo.
> Many thanks in advance,
> 
> A.T.
> 
> 
> _______________________________________________
> RTAI mailing list
> RTAI at rtai.org
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
> 






More information about the Rtai mailing list