From: "Anh Vo" <anhvofrcaus@gmail.com>
Subject: Re: Designing Timers using Ada.Real_Time.Timing_Events package
Date: 26 Mar 2006 08:18:56 -0800
Date: 2006-03-26T08:18:56-08:00 [thread overview]
Message-ID: <1143389936.844624.243020@i40g2000cwc.googlegroups.com> (raw)
In-Reply-To: <1fiau0e4pe84o$.gulfgysczk5i$.dlg@40tude.net>
>> I did not know that it is possible to use protected objects
>> functionally while each timer used for different purpose. Could you
>> elaborate further?
> Why not? Each protected object would be a simple event. The handler set for
> Ada.Real_Time.Timing_Events triggers an event(s). The functionality, i.e.
> what has to be done upon the event, is outside. It happens in the task
> waiting for the event.
it works only if there is a specific purpose associated with an event.
In other word, an event handler must be set for a specific action. The
timers work almost like a generic in that the event is set once. The
action is supplied at the time of instantiation.
> (I don't have GNAT GPL installed)
GNAT GPL has not implemented Timing_Events yet. GNAT under gcc-4.2.0 is
needed.
> Decoupling. The model one task - one callback is too specialized and
> exposed to misuse. You might wish to have more than one task, you might
> want handling the timer events on different contexts, routing and
> re-routing them between tasks.
For each timer defined through derivation, it is run under a separate
task. In case of Safe_Timers there are two tasks, additional task
needed for decoupling, running. Therefore, they are completely
separated between callbacks.
AV
next prev parent reply other threads:[~2006-03-26 16:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-25 20:03 Designing Timers using Ada.Real_Time.Timing_Events package Anh Vo
2006-03-25 20:58 ` Dmitry A. Kazakov
2006-03-26 5:39 ` Anh Vo
2006-03-26 12:58 ` Dmitry A. Kazakov
2006-03-26 16:18 ` Anh Vo [this message]
2006-03-26 18:22 ` Dmitry A. Kazakov
2006-03-26 19:43 ` Anh Vo
[not found] ` <3itd22hcekts5lsojdqjnn966bbvc8fckh@4ax.com>
2006-03-26 23:53 ` Anh Vo
[not found] ` <0mae22lshe5nee8pt8h7seussloebv07g3@4ax.com>
2006-03-27 5:01 ` Anh Vo
[not found] ` <5vse22h4mc1och27s0nkbv986csi2rorki@4ax.com>
2006-03-28 0:07 ` Anh Vo
2006-03-27 7:49 ` Dmitry A. Kazakov
2006-03-27 18:14 ` Dmitry A. Kazakov
2006-03-27 22:00 ` Anh Vo
2006-03-28 7:51 ` Dmitry A. Kazakov
2006-03-28 16:00 ` Anh Vo
2006-03-26 7:59 ` Martin Krischik
2006-03-26 15:50 ` Anh Vo
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox