From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,20fc5d32e97c6267 X-Google-Attributes: gid103376,public From: geert@fozzie.sun3.iaf.nl (Geert Bosch) Subject: Re: GNAT and Tasks for OS/2 Date: 1996/12/30 Message-ID: <5a8je0$1lc@fozzie.sun3.iaf.nl>#1/1 X-Deja-AN: 206820415 references: <5a66f5$pqh$1@unlisys.unlisys.net> organization: La Calandre Infortunee newsgroups: comp.lang.ada Date: 1996-12-30T00:00:00+00:00 List-Id: 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)