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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b4cf0ad6702f7c2c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-24 10:28:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "David Botton" Newsgroups: comp.lang.ada Subject: Re: Periodic screen update using GWindows/GNAT? Date: Fri, 24 May 2002 13:27:31 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <8cd144a2.0205231431.6524993@posting.google.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:24661 Date: 2002-05-24T13:27:31-04:00 List-Id: "Randy Brukardt" wrote in message news:uer6rdmi3ivk25@corp.supernews.com... > Well, this is easy in Claw, because Claw is task safe. Just create a > task to do the display update, give the task a copy of the window to > write to, and write to the window as needed. The event loop is a > separate task, so you don't need to worry about it, and it doesn't block > the window updating. There is an example of doing that with Claw (look > at Adtest). Works the same way in GWindows for updates. > I don't believe GWindows is task-safe. (I'm sure David will correct me > if I'm wrong here...) That means that only a single task can write to > the windows, so you can't use the tasking solution (at least not without > standing on your head). GWindows is Task Savy :-) As with Claw you can update/write to any window at any time. The only time tasking is more involved (for flexability reasons) is when "creating" new controls in a window. There are examples of different methods in the GWindows code for doing this in a manner that best fits your project. David Botton