comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Q:Task Identification ?
Date: 1998/05/10
Date: 1998-05-10T00:00:00+00:00	[thread overview]
Message-ID: <dewar.894832657@merv> (raw)
In-Reply-To: Pine.BSI.3.95.980505105720.17281A-100000@school.digsys.bg


<<I am using DEC Ada compiler under OpenVMS_AXP v7.1.

Is there any way to obtain task identifier which differs
one task from the others in one program ?
>>


Look at the package Get_Task_Info, which is part of the DEC Ada 83 distribution
for OpenVMS (and is therefore also included in the GNAT OpenVMS implementation
of Ada 95). 

GET_CURRENT_TASK_TYPE_NAME gives the (string) name of the task type

If you have multiple tasks of the same type, then you can use 
GET_CURRENT_TASK_ID which returns a unique NATURAL value to
distinguish them (e.g. convert this number to a decimal digit string).

There is no way to get the name of the task object in DEC Ada (Ada 95
does not guarantee that such a method exists either, but you can
expect Ada.Task_Identification.Image to do something useful (and
in particular with GNAT, you get a unique and usefully informative string,
that deals with arrays of tasks etc.)





      parent reply	other threads:[~1998-05-10  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-06  0:00 Q:Task Identification ? Margarit Nickolov
1998-05-08  0:00 ` Stephen Leake
1998-05-08  0:00   ` Larry Kilgallen
1998-05-10  0:00 ` Robert Dewar [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