comp.lang.ada
 help / color / mirror / Atom feed
From: geert@fozzie.sun3.iaf.nl (Geert Bosch)
Subject: Re: GNAT and Tasks for OS/2
Date: 1996/12/30
Date: 1996-12-30T00:00:00+00:00	[thread overview]
Message-ID: <5a8je0$1lc@fozzie.sun3.iaf.nl> (raw)
In-Reply-To: 5a66f5$pqh$1@unlisys.unlisys.net


Michael Erdmann (boavista@berlin.snafu.de) wrote:
`` Does somebody know, how task are implemented in GNAT for OS/2. Is it 
   nessesary to get an achor block for the PM in every task which may try to
   access PM functions ? ''

Yes, that is necessary since GNAT tasks are mapped onto OS/2 threads.
You also should create a window in the task that will execute the
messageloop or OS/2 will put messages in the wrong queue. This makes 
creating multithreaded applications more difficult than it should be.
Unfortunately this is an OS/2 limitation.

At least using Ada you can encapsulate these things in a package with
a clean interface.

Regards,
   Geert
-- 
E-Mail: geert@sun3.iaf.nl : Die Windows is hartstikke vaag man, daar moeten 
                          : we een glazenwasser bij halen! (Meneer Jos) 




  reply	other threads:[~1996-12-30  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-29  0:00 GNAT and Tasks for OS/2 Michael Erdmann
1996-12-30  0:00 ` Geert Bosch [this message]
1996-12-31  0:00   ` boavista
replies disabled

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