On Thu, 2006-06-22 at 18:12 +0200, Jan Kiszka wrote:
> Hi Gilles,
> 
> I think some regression slipped into the rt-pthread lib. This example no
> longer works on my box (thread is not executed):

The issue is in src/skins/posix/thread.c. The trampoline does not even
attempt to fire the thread body for policy == SCHED_OTHER. Will fix.
This said, I still wonder why cyclic is affected, since it should only
create SCHED_FIFO threads, but tracing it a bit, the issue is indeed the
same one.

> 
> #include <pthread.h>
> #include <stdio.h>
> #include <sys/mman.h>
> 
> void *thread(void *arg)
> {
>         printf("thread\n");
>         return 0;
> }
> 
> main()
> {
>         pthread_t thr;
> 
>         mlockall(MCL_CURRENT|MCL_FUTURE);
> 
>         printf("create = %d\n",
>                pthread_create(&thr, NULL, thread, NULL));
>         pause();
> }
> 
> 
> This also explains why the cyclic test is broken.
> 
> Jan
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@gna.org
> https://mail.gna.org/listinfo/xenomai-core
-- 
Philippe.



_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to