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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e793d50ead4087cc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,CP1252 X-Received: by 10.224.181.140 with SMTP id by12mr17014255qab.0.1356672140449; Thu, 27 Dec 2012 21:22:20 -0800 (PST) Received: by 10.49.34.135 with SMTP id z7mr4995331qei.1.1356672140418; Thu, 27 Dec 2012 21:22:20 -0800 (PST) Path: k2ni3151qap.0!nntp.google.com!ee4no2687655qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 27 Dec 2012 21:22:20 -0800 (PST) In-Reply-To: <0c94b952-2bdf-4f25-98a3-91a67ed2355d@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.26.183.5; posting-account=niG3UgoAAAD7iQ3takWjEn_gw6D9X3ww NNTP-Posting-Host: 85.26.183.5 References: <0c94b952-2bdf-4f25-98a3-91a67ed2355d@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <978bd22c-57bf-416c-a142-14b221047cdd@googlegroups.com> Subject: Re: Thickening Ada GTK or Vala Binding ? From: Vadim Godunko Injection-Date: Fri, 28 Dec 2012 05:22:20 +0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Date: 2012-12-27T21:22:20-08:00 List-Id: On Thursday, December 27, 2012 9:45:40 PM UTC+4, Patrick wrote: > I have done some experiments. QT has a method called QApplication::proces= sEvents that was designed to be called from long running callbacks to avoid= locking up the gui. I wrapped it and called it from a loop inside Ada and = avoided the normal QT main loop all together. I would then be able to call = tasks and use Ada=92s multi-threading. I would however have to wrap each C+= + callback in C in order to bind to Ada and that looked painful. >=20 Your life will be much more simple if you will use QtAda: it do all low lev= el stuff for you. You don't need to write any C/C++ at all.