On Mon, Apr 7, 2008 at 2:14 PM, Gilles Chanteperdrix
> On Mon, Apr 7, 2008 at 1:32 PM, Thomas Wiedemann
>  <[EMAIL PROTECTED]> wrote:
>  > Hi folks,
>  >
>  >  i think there is a problem with the xenomai scheduler or the sched_yield()
>  >  call, when using the POSIX skin (Xenomai 2.4.3, Linux, SMP,
>  >  .config is attached).
>  The semantic of sched_yield() is a bit specific: it causes threads
>  running in primary mode to yield to other threads running in primary
>  mode. To get threads running in secondary mode to yield to other
>  threads running in secondary mode, you have to call
>  __real_sched_yield().

That said what we could do is that sched_yield() calls
__real_sched_yield() for threads running in secondary mode. Try the
attached patch (recompilation of kernel needed).


Attachment: xeno-posix-2ndary-mode-sched_yield.diff
Description: Binary data

Xenomai-core mailing list

Reply via email to