From: Jan Kiszka <jan.kiszka@domain.hid>
To: rpm@xenomai.org
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [BUG] normal pthreads broken
Date: Fri, 23 Jun 2006 11:07:03 +0200 [thread overview]
Message-ID: <449BAF37.4000806@domain.hid> (raw)
In-Reply-To: <1151052647.4438.20.camel@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]
Philippe Gerum wrote:
> 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.
It creates normal threads and then calls ppthread_setschedparam.
>
>> #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@domain.hid
>> https://mail.gna.org/listinfo/xenomai-core
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
prev parent reply other threads:[~2006-06-23 9:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-22 16:12 [Xenomai-core] [BUG] normal pthreads broken Jan Kiszka
2006-06-23 8:50 ` Philippe Gerum
2006-06-23 8:58 ` Philippe Gerum
2006-06-23 9:07 ` Jan Kiszka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=449BAF37.4000806@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=rpm@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.