comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Real tasking problems with Ada.
Date: Thu, 03 Aug 2017 09:03:25 +0100
Date: 2017-08-03T09:03:25+01:00	[thread overview]
Message-ID: <ly4ltpqdrm.fsf@pushface.org> (raw)
In-Reply-To: f9e87130-3f08-43c4-8cc6-9e164a6da954@googlegroups.com

Robert Eachus <rieachus@comcast.net> writes:

> Sigh! Get_Id as defined is heavy only because of the default initial value:
>
>    function Get_CPU
>       (T   : Ada.Task_Identification.Task_Id :=
>                  Ada.Task_Identification.Current_Task)
>            return CPU_Range;

Would it have been reasonable to have used Null_Task_Id to mean 'the
current task'? (this is a trick used in FreeRTOS at least).


  parent reply	other threads:[~2017-08-03  8:03 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-25 23:19 Real tasking problems with Ada Robert Eachus
2017-07-26 19:42 ` sbelmont700
2017-07-27  2:00   ` Robert Eachus
2017-08-01  4:45     ` Randy Brukardt
2017-08-02  2:23       ` Robert Eachus
2017-08-03  3:43         ` Randy Brukardt
2017-08-03 20:03           ` Robert Eachus
2017-08-03 23:10             ` Luke A. Guest
2017-08-04 23:22             ` Randy Brukardt
2017-08-22  5:10               ` Robert Eachus
2017-08-01  4:41 ` Randy Brukardt
2017-08-02  3:44   ` Robert Eachus
2017-08-02 14:39     ` Lucretia
2017-08-03  0:57       ` Robert Eachus
2017-08-03  5:43         ` Randy Brukardt
2017-08-03  1:33       ` Wesley Pan
2017-08-03  4:30       ` Randy Brukardt
2017-08-03  4:16     ` Randy Brukardt
2017-08-03  5:05       ` Niklas Holsti
2017-08-04 23:11         ` Randy Brukardt
2017-08-05  7:01           ` Niklas Holsti
2017-08-03  8:03     ` Simon Wright [this message]
2017-08-04 23:16       ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox