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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,51dee4dc36467dc9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.241.7 with SMTP id we7mr927677pbc.4.1337065289595; Tue, 15 May 2012 00:01:29 -0700 (PDT) Path: pr3ni558pbb.0!nntp.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: ANN: GtkAda contributions v2.13 Date: Tue, 15 May 2012 09:00:46 +0200 Organization: cbb software GmbH Message-ID: References: <23820478.1984.1336923532825.JavaMail.geo-discussion-forums@ynll26> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-05-15T09:00:46+02:00 List-Id: 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