On 03/24/2018 02:55 PM, Gabriel Aguirre-Ollinger wrote:
> Hi,
> I'm running Xenomai/cobalt v3.0.5 on an Intel(R) Celeron(R) CPU. Currently
> I'm writing a real-time task loop that requires execution to stop until a
> signal with a certain integer value is received. Thus I've included a call
> to rt_event_wait_timed() to wait for the appropriate value to be written to
> the mask; I'm specifying a NULL timeout value. The problem I have is that
> rt_event_wait_timed() consistently returns EFAULT ('bad address') and
> returns without blocking. I don't know what this error means since it is
> not even considered in the Xenomai manual documentation as one of the
> possible returns for rt_event_wait_timed().

Assuming that EFAULT means the same thing here than anywhere else should
be a safe bet.

 I have also tried
> rt_event_wait() with the exact same result. Any help will be appreciated.
> 

You may be looking at the wrong place: NULL timeout is fine, NULL mask_r
(for collecting the result mask) is not.

-- 
Philippe.

_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to