comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: GtkAda with several task (or distributed solution?)?
Date: Fri, 27 Apr 2001 17:44:04 GMT
Date: 2001-04-27T17:44:04+00:00	[thread overview]
Message-ID: <EdiG6.1045$SZ5.84802@www.newsranger.com> (raw)
In-Reply-To: D%gG6.1133$Ty6.15964@news1.oke.nextra.no

In article <D%gG6.1133$Ty6.15964@news1.oke.nextra.no>, 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



  parent reply	other threads:[~2001-04-27 17:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-27 16:20 GtkAda with several task (or distributed solution?)? Frank
2001-04-27  6:40 ` Bobby D. Bryant
2001-04-27 19:49   ` Simon Wright
2001-04-28  8:43   ` Frank
2001-04-28  6:02     ` Bobby D. Bryant
2001-05-01  8:48       ` Frank
2001-05-01  9:00         ` Preben Randhol
2001-05-02  7:21           ` Wilhelm Spickermann
2001-05-02  8:11             ` Preben Randhol
2001-05-02 10:51               ` Gerd Arlitt
2001-05-02  9:23                 ` Preben Randhol
2001-05-01 16:54         ` Bobby D. Bryant
2001-05-02  7:51           ` Wilhelm Spickermann
2001-05-02 16:50             ` Bobby D. Bryant
2001-05-03 18:22               ` Wilhelm Spickermann
2001-05-14 13:56           ` Recompiling GtkAda to handle Annex E variant of s-stratt Frank
2001-05-14 15:22             ` Florian Weimer
2001-05-15 15:10               ` Frank
2001-04-27 17:44 ` Ted Dennison [this message]
2001-04-28  8:31   ` GtkAda with several task (or distributed solution?)? Frank
2001-04-30 14:03     ` Ted Dennison
replies disabled

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