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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ravenscar vs selective wait Date: Tue, 24 Mar 2015 20:12:33 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="639fc80d983459c1c824f7cd3788af8d"; logging-data="17596"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+u7VZDmaELOGPz0CXIJZYsKKdP8tqWnFw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) Cancel-Lock: sha1:/n1pZm4zLYuraU4rnvTTpD+NT/c= sha1:pDy8woaGgIDMjhGxZbe6L9+xX80= Xref: news.eternal-september.org comp.lang.ada:25239 Date: 2015-03-24T20:12:33+00:00 List-Id: "J-P. Rosen" writes: > Some hint however: I have a record containing a PO similar to what > Jeff suggests, and a Timing_Event that unblocks the PO when the delay > has expired. Similarly, the Wait entry has an out parameter to tell > whether it's been awaken by an event or by time-out. AdaCore's 4.9.1 implementation has a task which polls at 10 Hz (adjustable by recompiling the RTS). The GPL 2014 arm-eabi version uses magic deep in the System.BB (bare board) tree. Whichever, it's clear that _something_ has to run every clock tick to decide whether to invoke one of the timed events; and it seems best to do it via a Timed_Event if I can get my FreeRTOS implementation to do so.