From: Philippe Gerum <rpm@xenomai.org>
To: Matthias Schneider <ma30002000@yahoo.de>,
"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] FreeRTOS skin #2
Date: Mon, 14 Jul 2014 22:15:14 +0200 [thread overview]
Message-ID: <53C43A52.7070702@xenomai.org> (raw)
In-Reply-To: <1405365539.41980.YahooMailNeo@web171603.mail.ir2.yahoo.com>
On 07/14/2014 09:18 PM, Matthias Schneider wrote:
>
>
>
>
> ----- Original Message -----
>> From: Philippe Gerum <rpm@xenomai.org>
>> To: Matthias Schneider <ma30002000@yahoo.de>; "xenomai@xenomai.org" <xenomai@xenomai.org>
>> Cc:
>> Sent: Wednesday, July 9, 2014 9:42 AM
>> Subject: Re: [Xenomai] FreeRTOS skin #2
>>
>> On 07/01/2014 06:48 PM, Matthias Schneider wrote:
>>> Please find enclosed another calling the check_processors() only when
>> starting
>>> the scheduler and remembering its output. It is also adapted to the latest
>> changes.
>>> Any comments will be appreciated.
>>>
>>
>> - clusters allowing key dups are available using the *_dup() call form
>> - vTaskEndScheduler() can be simplified, and should not panic if it
>> cannot lock a vanishing thread pulled from the task list.
>>
>> --
>
>> Philippe.
>>
>
> The vTaskEndScheduler() patch unfortunately now leads to a frozen
> vTaskStartScheduler() function when shutting down in some tests.
>
> This is probably due to freertos_scheduler.tasklist_end_cond not being
> triggered when the list gets empty in vTaskEndScheduler() ? also,
That condvar is shared between the task finalizer and
vTaskStartScheduler() instead. If no task terminates after
vTaskEndScheduler() is called, then we will be missing the trigger
indeed. The logic needs some fixing. I also just noticed that the
start_cond variable seems redundant with the purpose of
threadobj_wait_start().
> freertos_scheduler.num_tasks seems not to be decremented when removing
> elemets from the list via pvlist_pop_entry().
>
> Even when calling pthread_cond_signal() at the end of vTaskEndScheduler(),
> I still get the freeze. Any idea?
>
>
--
Philippe.
next prev parent reply other threads:[~2014-07-14 20:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-22 19:46 [Xenomai] FreeRTOS skin #2 Matthias Schneider
2014-06-02 18:46 ` Matthias Schneider
2014-06-20 7:55 ` Philippe Gerum
2014-06-23 10:31 ` Matthias Schneider
2014-06-23 20:27 ` Matthias Schneider
2014-07-01 16:48 ` Matthias Schneider
2014-07-09 7:42 ` Philippe Gerum
2014-07-09 8:24 ` Philippe Gerum
2014-07-14 19:12 ` Matthias Schneider
2014-07-14 19:18 ` Matthias Schneider
2014-07-14 20:15 ` Philippe Gerum [this message]
2014-07-09 7:46 ` Philippe Gerum
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=53C43A52.7070702@xenomai.org \
--to=rpm@xenomai.org \
--cc=ma30002000@yahoo.de \
--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.