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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8b7e315279c3f417,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.180.141 with SMTP id bu13mr6673054qab.2.1355685677029; Sun, 16 Dec 2012 11:21:17 -0800 (PST) Received: by 10.49.81.72 with SMTP id y8mr410097qex.42.1355685677006; Sun, 16 Dec 2012 11:21:17 -0800 (PST) Path: k2ni7qap.0!nntp.google.com!fc2no1143589qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 16 Dec 2012 11:21:16 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.53.16.242; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 70.53.16.242 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5ced9166-5a29-4ad2-8270-6d24ddd0d0a1@googlegroups.com> Subject: Ada Library, called, returns and continues ? From: Patrick Injection-Date: Sun, 16 Dec 2012 19:21:17 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-12-16T11:21:16-08:00 List-Id: so I have been going around in circles(as usual)with a problem. I would lik= e to use Ada as a library from a single threaded GUI application. I don't want the GUI to block and I want the freedom to use Ada's threading= model without too many restrictions. I keep changing my mind but today I looking into the Fox Toolkit. I am thin= king about writing a single threaded C++ or Ruby application and then calli= ng Ada from it. I was thinking about using UNIX sockets or dbus and have the two live separ= ate lives, just communicating as needed but I am wondering if I am missing = something simple. If I write and compile an Ada library into my GUI app, is= it possible to call an Ada function, have it return quickly but then have = Ada code continue to execute using threading? Honestly I have not used Ada's threading yet but could the GUI call an entr= y, perhaps after an initialization call to start the threads?