comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: is_callable(environment)?
Date: 1998/07/23
Date: 1998-07-23T00:00:00+00:00	[thread overview]
Message-ID: <EwJyDH.Ctz.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 35b58fd0.21988014@SantaClara01.news.InterNex.Net

Tom Moran (tmoran@bix.com) wrote:

: ... but I wonder
: if I'm just very lucky, or if most compilers take the allowance of
: C.7.1(21) and allow 'caller to return a task_id of the environment
: task, and if is_callable on the environment task becomes false when it
: reaches the end of the main program and before its dependent tasks
: have terminated and library level controlled objects have finalized.

The environment task is a task, so 'Caller, 
Ada.Task_Identification.Current_Task, etc., all need to work on it.

There is also nothing that disallows Is_Callable(env-task-id), so
calling it should be "safe."  However, it is pretty easy to
imagine that the mechanism for waiting for library-level tasks
follows a different path in the run-time system than that used
when exiting an "explicit" task body, so it seems possible that
Is_Callable(env-task) might remain true indefinitely (or perhaps false
indefinitely).  Clearly, you will need to test this out on
each Ada run-time you intend to use.

--
-Tucker Taft   stt@inmet.com   http://www.inmet.com/~stt/
Intermetrics, Inc.  Burlington, MA  USA




      parent reply	other threads:[~1998-07-23  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-22  0:00 is_callable(environment)? Tom Moran
1998-07-22  0:00 ` is_callable(environment)? Robert Dewar
1998-07-23  0:00   ` is_callable(environment)? Tom Moran
1998-07-23  0:00   ` is_callable(environment)? Jean-Pierre Rosen
1998-07-23  0:00 ` Tucker Taft [this message]
replies disabled

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