comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!ho wland.reston.ans.net!noc.near.net!inmet!spock!offer@ucbvax.Berkeley.EDU  (Offer Pazy)
Subject: Re: GUI's generating Ada (was Re: Teleuse)
Date: 28 Apr 93 15:09:58 GMT	[thread overview]
Message-ID: <1993Apr28.150958.23665@inmet.camb.inmet.com> (raw)

In article <1993Apr27.161337.18593@evb.com> jgg@evb.com (John Goodsen) writes:
>hyler@ast.saic.com (Buffy Hyler) writes:

>On a related note, can anyone tell me off-hand if Ada 9X will provide a call
>like:
>
>     current_task := CURRENT_TASK_ID;
>                     ^^^^^^^^^^^^^^^
>                     A function which returns the current task id.

Yes, the System Programming annex provides a package System.Task_Identification
.
In it, an impl-defined type (Task_ID) is declared with "=" and Image on 
objects of this type.  In addition the function Current_Task is declared  
and returned that type.  Finally (for the package) a NULL constant and an 
abort through this type are also present.  
Two attributes exist:

'Identity which returns a value of Task_id  and is applicable to any task 
object, and 'Caller that is applicable for entries and returns the task_id of
the caller on "whose behalf" the entry body or accept statement is cuurrently
executed.

(See G.5.1 in the latest draft for precise details).  


Offer Pazy
9X MRT

             reply	other threads:[~1993-04-28 15:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-04-28 15:09 cis.ohio-state.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!ho [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-04-28 18:27 GUI's generating Ada (was Re: Teleuse) cis.ohio-state.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!falis
1993-04-27 16:13 John Goodsen
1993-04-27 12:30 Scott McCoy
1993-04-27  4:08 sdd.hp.com!portal!cup.portal.com!JimB
1993-04-26 20:53 news-feed-1.peachnet.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!ne
replies disabled

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