From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:6d3b:: with SMTP id r27mr13415363qtu.55.1588517104467; Sun, 03 May 2020 07:45:04 -0700 (PDT) X-Received: by 2002:aca:57c4:: with SMTP id l187mr6269719oib.155.1588517104227; Sun, 03 May 2020 07:45:04 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 3 May 2020 07:45:03 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=70.109.61.2; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 70.109.61.2 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ravenscar - release multiple tasks when an event occurs From: Jere Injection-Date: Sun, 03 May 2020 14:45:04 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58563 Date: 2020-05-03T07:45:03-07:00 List-Id: On Sunday, May 3, 2020 at 6:43:31 AM UTC-4, Simon Wright wrote: > I have several sensor tasks (in general, 2 at the moment) which will of > course be created and start execution during elaboration. > > I'd like to ensure that they don't actually start reading and reporting > input data until the system is in a state to receive them. > > With the Ravenscar profile it's not obvious how to do this (only one > entry per PO, only one task allowed to queue). I suppose I could just > ignore the inputs until the system's ready to receive them! but has > anyone a scheme which is less clunky? > > An alternative would be to try for the Jorvik profile, which does allow > multiple tasks to queue on one entry. I don't have any experience using ravenscar, so this is somewhat of a question as well as a potential option. I know you cannot do relative delays, but can you do absolute delays? If so, could that then give you the option to have a single protected object with a get function and set procedure (no entries) and you just spin lock at the beginning of all your tasks looking for that protected object to change state?