From: Natasha Kerensikova <lithiumcat@instinctive.eu>
Subject: Re: Termination of tasks waiting on a protected queue
Date: Sun, 18 May 2014 19:43:41 +0000 (UTC)
Date: 2014-05-18T19:43:41+00:00 [thread overview]
Message-ID: <slrnlni3bb.i0l.lithiumcat@nat.rebma.instinctive.eu> (raw)
In-Reply-To: ll9u93$ire$1@speranza.aioe.org
Hello,
On 2014-05-18, anon@att.net <anon@att.net> wrote:
> try using a Select / terminate statements
It does not work. In the code below, "select" is immediately followed by
"Queue.Get_Next (Job)", which is an entry call,
so the "select" can be a timed entry call, a conditional entry call, or
an asynchronous transfer of control, but not a selective accept.
However, terminate alternatives can exist only in selective accepts.
> task body Worker is
> Job : Job_Description;
> begin
> loop
> select
> Queue.Get_Next (Job);
> <actually to the job>
> or
> terminate ;
> end select ;
> end loop;
> end Worker;
To put in GNAT's terms:
68. terminate ;
12
>>> statement expected
>>> only allowed alternative in timed entry call is delay
next prev parent reply other threads:[~2014-05-18 19:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-18 7:32 Termination of tasks waiting on a protected queue Natasha Kerensikova
2014-05-18 9:24 ` anon
2014-05-18 19:43 ` Natasha Kerensikova [this message]
2014-05-18 17:16 ` Jeffrey Carter
2014-05-18 19:54 ` Natasha Kerensikova
2014-05-18 21:54 ` Jeffrey Carter
2014-05-18 18:42 ` sbelmont700
2014-05-18 18:48 ` Jeffrey Carter
2014-05-18 20:51 ` sbelmont700
2014-05-18 21:44 ` Jeffrey Carter
2014-05-19 21:49 ` Randy Brukardt
2014-05-20 7:54 ` Dmitry A. Kazakov
2014-05-20 7:58 ` Dmitry A. Kazakov
2014-05-18 23:05 ` Brad Moore
2014-05-19 7:28 ` Natasha Kerensikova
2014-05-27 11:08 ` Alejandro R. Mosteo
2014-05-28 1:04 ` Brad Moore
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox