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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7efbdbcd2058c74e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-27 10:44:26 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!newsfeed.mindspring.net.MISMATCH!news.mindspring.net!out.nntp.be!propagator-dallas!news-in-dallas.newsfeeds.com!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: GtkAda with several task (or distributed solution?)? Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Fri, 27 Apr 2001 13:44:04 EDT Organization: http://www.newsranger.com Date: Fri, 27 Apr 2001 17:44:04 GMT Xref: newsfeed.google.com comp.lang.ada:6987 Date: 2001-04-27T17:44:04+00:00 List-Id: In article , Frank says... >I read somewhere that if you have a Ada program using Gtk, and having >several tasks, only one task can (or should?) >operate the GUI ? That's generally true with *any* graphical toolkit (or when dealing with any device at all), unless it has been specifically written to deal with tasking issues. You should have one task to handle all direct accesses to the GUI toolkit. Other tasks should send requests through the GUI handler. >Is this true if the tasks are "separeted" by the distributed solution also? Are you talking about Annex E here? I'm guessing it would be OK for different tasks to talk to different machine's GUI's as long as there's only one task handling each machine's GUI. Any multi-word data they share may need to be protected from "tearing" though. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com