comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: ANN: GtkAda contributions v2.13
Date: Tue, 15 May 2012 09:00:46 +0200
Date: 2012-05-15T09:00:46+02:00	[thread overview]
Message-ID: <q5ia5ih9urat.2a65azeo9pmk.dlg@40tude.net> (raw)
In-Reply-To: 23820478.1984.1336923532825.JavaMail.geo-discussion-forums@ynll26

On Sun, 13 May 2012 08:38:52 -0700 (PDT), Patrick wrote:

> I have been playing with gtk ada but I was discouraged when I read about
> tasking in the documentation. It seemed like it was not fully supported.
> Could you give me some feedback on tasking support in gtk ada? 

GTK is not thread-safe, that means if you would call any Gtk (and thus
GtkAda) subprogram form the thread different from the main thread (more
accurately, from the thread running the GTK messages loop), it will most
certainly crash.

> could you tell me more about your tasking contributions?

GtkAda contributions provide means for an Ada task to engage a rendezvous
with the main task. It is safe to use any GTK operations from there. It
could be done either in the traditional OO way by overriding a primitive
"visitor" operation, or per a generic package instantiation and passing a
"service" callback.

GtkAda contributions also provide convenience operations for opening simple
message boxes from any Ada task.

Further GtkAda contributions provide task-safe tracing facilities for
debugging GtkAda programs. Which supports call stack tracing, visual
navigation of the call stack, breaking upon GTK errors and warnings,
jumping to the source location using the GPS.

For further information read this:

http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#1

The subdirectory test_gtkada contains test_gtk_tasking.adb which
illustrates usage of tasking support.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-05-15  7:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-13 14:41 ANN: GtkAda contributions v2.13 Dmitry A. Kazakov
2012-05-13 15:38 ` Patrick
2012-05-15  7:00   ` Dmitry A. Kazakov [this message]
2012-05-14  5:15 ` Mart van de Wege
2012-05-14  7:45   ` Dmitry A. Kazakov
2012-05-14  8:48     ` Mart van de Wege
2012-05-16 19:10   ` Dmitry A. Kazakov
2012-05-16 20:08     ` Mart van de Wege
replies disabled

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