From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <53679C78.9080201@xenomai.org> Date: Mon, 05 May 2014 16:13:12 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <1399222750.71931.YahooMailNeo@web171601.mail.ir2.yahoo.com> <53676902.5050405@xenomai.org> <53679A45.2060309@xenomai.org> In-Reply-To: <53679A45.2060309@xenomai.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] FreeRTOS skin List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix , Matthias Schneider , "xenomai@xenomai.org" On 05/05/2014 04:03 PM, Gilles Chanteperdrix wrote: > On 05/05/2014 12:33 PM, Philippe Gerum wrote: >> - vTaskSuspendAll()/vTaskResumeAll() maintain useless status flags. >> Copperplate provides __THREAD_S_SUSPENDED in the core status of threads >> for the very same purpose. > > I believe in FreeRTOS vTaskSuspendAll/vTaskResumeAll is more like a task > lock mechanism than a service suspending/resuming all tasks for real. Of > course this only provides mutual exclusion on UP. > > Definitely, this is threadobj_sched_lock() in all its glory. A bit of a misnomer. So the current implementation could be simplified a lot it seems. -- Philippe.