Fixed two timer base regressions
Hi Philippe,
the "trivial" bugs are fixed already: see #2152 for the reason why rt_dev_read timeouts took too long (the timer mode was ignored by xnsynch_sleep_on), and I also found a yet invisible bug in rtdm_toseq_init that would have picked the wrong time base (#2153).
Now just that rtcanrecv issue remains...
Jan
Quoted 5 lines · Jan Kiszka
Hi Philippe,
the "trivial" bugs are fixed already: see #2152 for the reason why
rt_dev_readtimeouts took too long (the timer mode was ignored byxnsynch_sleep_on),
Ok.
Quoted 3 lines
and I also found a yet invisible bug in
rtdm_toseq_initthat would have picked the wrong time base (#2153).
Using xnpod_current_thread()'s time base in rtdm_toseq_init() will always pick the master one when called over a secondary mode context, which according to the doc, is allowed. Is this intended?
Quoted 4 lines
Now just that rtcanrecv issue remains...
Jan
Signature · 1 line
Philippe.
Quoted 9 lines · Philippe Gerum
Quoted 5 lines · Jan Kiszka
Hi Philippe,
the "trivial" bugs are fixed already: see #2152 for the reason why
rt_dev_readtimeouts took too long (the timer mode was ignored byxnsynch_sleep_on),Ok.
Quoted 7 lines
Quoted 3 lines
and I also found a yet invisible bug in
rtdm_toseq_initthat would have picked the wrong time base (#2153).Using xnpod_current_thread()'s time base in
rtdm_toseq_init()will always pick the master one when called over a secondary mode context, which according to the doc, is allowed. Is this intended?
rtdm_toseq_init will only be called over primary context, it belongs into the same context as rtdm_mutex_timedlock, rtdm_sem_timeddown, etc.
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 5 lines · Jan Kiszka
Hi Philippe,
the "trivial" bugs are fixed already: see #2152 for the reason why
rt_dev_readtimeouts took too long (the timer mode was ignored byxnsynch_sleep_on),Ok.
Quoted 3 lines
and I also found a yet invisible bug in
rtdm_toseq_initthat would have picked the wrong time base (#2153).
Quoted 7 lines
Quoted 3 lines
Using xnpod_current_thread()'s time base in
rtdm_toseq_init()will always pick the master one when called over a secondary mode context, which according to the doc, is allowed. Is this intended?
rtdm_toseq_initwill only be called over primary context, it belongs into the same context asrtdm_mutex_timedlock,rtdm_sem_timeddown, etc.
OK, got your point: you were referring to the rtdm_toseq_init doc which talks about secondary mode usage - this needs fixing now (and never made any sense :( ).
Jan
Quoted 14 lines · Jan Kiszka
Quoted 13 lines · Philippe Gerum
Quoted 5 lines · Jan Kiszka
Hi Philippe,
the "trivial" bugs are fixed already: see #2152 for the reason why
rt_dev_readtimeouts took too long (the timer mode was ignored byxnsynch_sleep_on),Ok.
Quoted 3 lines
and I also found a yet invisible bug in
rtdm_toseq_initthat would have picked the wrong time base (#2153).
Quoted 7 lines
Quoted 3 lines
Using xnpod_current_thread()'s time base in
rtdm_toseq_init()will always pick the master one when called over a secondary mode context, which according to the doc, is allowed. Is this intended?
rtdm_toseq_initwill only be called over primary context, it belongs into the same context asrtdm_mutex_timedlock,rtdm_sem_timeddown, etc.
So the doc needs fixing, I guess.
Signature · 1 line
Philippe.