comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: task model
Date: Thu, 15 Oct 2009 13:15:40 -0700
Date: 2009-10-15T13:15:40-07:00	[thread overview]
Message-ID: <hb7v7p$fu2$1@news.tornevall.net> (raw)
In-Reply-To: <nahsigbubftd.6s9bknzww2a4$.dlg@40tude.net>

Dmitry A. Kazakov wrote:
> 
> 3. Do not do any asynchronous (lengthy) processing within a rendezvous,
> i.e. within do...end of an accept. During the rendezvous the caller is
> blocked. Rendezvous is meant for short synchronous things, like passing the
> parameters and results, then the caller is released and the callee
> completes things asynchronously to the caller.

You can do anything you choose in an accept statement. Be aware that the calling 
task is blocked until the accept completes.

-- 
Jeff Carter
"Oh Lord, bless this thy hand grenade, that with it thou
mayst blow thine enemies to tiny bits, in thy mercy."
Monty Python and the Holy Grail
24



  reply	other threads:[~2009-10-15 20:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-15 17:43 task model Mike
2009-10-15 18:00 ` Ludovic Brenta
2009-10-15 19:15   ` Anh Vo
2009-10-15 19:54     ` Dmitry A. Kazakov
2009-10-15 20:15       ` Jeffrey R. Carter [this message]
2009-10-16 14:06       ` Georg Bauhaus
2009-10-16 14:57         ` Brad Moore
2009-10-16 20:06         ` Jeffrey R. Carter
2009-10-17 11:10           ` Georg Bauhaus
2009-10-17 12:18             ` Dmitry A. Kazakov
2009-10-17 17:34             ` Jeffrey R. Carter
2009-10-19  7:56         ` Jean-Pierre Rosen
2009-10-15 19:55     ` sjw
replies disabled

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