[gtkada] GtkAda and tasking

Jean-Pierre Rosen rosen.adalog at wanadoo.fr
Wed Apr 19 14:58:32 CEST 2000


> > > Also, if you are looking for a fully blocking solution, you should
look
> > for
> > > a fully tasking solution I think.
> > I'd love to. The question is how to do it (see my other message).
>
> By doing Gtk calls in more than one task.
>
If I understand correctly:
1) Only one task can execute a gtk.Main.Main at the same time, it is not
possible to manage different windows by different tasks. True?
2) There is a mechanism to ensure serialization. If a task attempts to call
Gtk while another task is executing in it, it will block. I assume this
applies also to the case where the other task is inside Gtk.Main.Main - in
other words, while you are interacting with the user, all tasks that attempt
to use Gtk are blocked. In this case, I don't see much value in providing a
task-safe version, since in practice you'll need to use Gtk from only one
task any way... (i.e. there is no point in using multi-tasking, if N-1 tasks
are blocked....)
---------------------------------------------------------
           J-P. Rosen (Rosen.Adalog at wanadoo.fr)
Visit Adalog's web site at http://pro.wanadoo.fr/adalog






More information about the gtkada mailing list