comp.lang.ada
 help / color / mirror / Atom feed
* GNAT and Tasks for OS/2
@ 1996-12-29  0:00 Michael Erdmann
  1996-12-30  0:00 ` Geert Bosch
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Erdmann @ 1996-12-29  0:00 UTC (permalink / raw)



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 ?


Michael





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GNAT and Tasks for OS/2
  1996-12-29  0:00 GNAT and Tasks for OS/2 Michael Erdmann
@ 1996-12-30  0:00 ` Geert Bosch
  1996-12-31  0:00   ` boavista
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Bosch @ 1996-12-30  0:00 UTC (permalink / raw)



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) 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GNAT and Tasks for OS/2
  1996-12-30  0:00 ` Geert Bosch
@ 1996-12-31  0:00   ` boavista
  0 siblings, 0 replies; 3+ messages in thread
From: boavista @ 1996-12-31  0:00 UTC (permalink / raw)



I did this, but still it does not work. I have the following tasks:

    main-Task : Creates the standardd window, which is root for all 
                     application.
    USER_TASK: Code which does the actual work and which is responsible 





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-12-31  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-29  0:00 GNAT and Tasks for OS/2 Michael Erdmann
1996-12-30  0:00 ` Geert Bosch
1996-12-31  0:00   ` boavista

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