comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Equivalent to C++'s 'this' for tasks?
Date: 1997/05/22
Date: 1997-05-22T00:00:00+00:00	[thread overview]
Message-ID: <EACHUS.97May22115925@spectre.mitre.org> (raw)
In-Reply-To: 5ltfe8$edr$1@goanna.cs.rmit.edu.au


In article <5ltfe8$edr$1@goanna.cs.rmit.edu.au> Dale Stanbrough <dale@goanna.cs.rmit.EDU.AU> writes:

  > If I wanted to create a task...

  > would it be possible in the body of a to construct/obtain
  > a pointer to the task?

   See C.7.1, package Ada.Task_Identification.  If the Ada compiler
you are using doesn't provide this package (it is in the Systems
Programming Annex), then there are other messier solutions.

   However, since this package isn't all that hard to implement, I
suspect that even with an Ada 83 compiler the easiest solution is to
build it yourself.  (You will probably have to look at some
disassembled code to find the right run-time calls if the compiler
implementor doesn't provide that documenation.)

--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...




  reply	other threads:[~1997-05-22  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-21  0:00 Equivalent to C++'s 'this' for tasks? Dale Stanbrough
1997-05-22  0:00 ` Robert I. Eachus [this message]
1997-05-22  0:00 ` Dale Stanbrough
1997-05-23  0:00   ` Robert A Duff
replies disabled

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