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-Language: ENGLISH,ASCII X-Google-Thread: 10b6ac,9f5633938c224117,start X-Google-Attributes: gid10b6ac,public X-Google-Thread: 103376,9f5633938c224117,start X-Google-Attributes: gid103376,public X-Google-Thread: 11038b,9f5633938c224117,start X-Google-Attributes: gid11038b,public X-Google-ArrivalTime: 2001-01-31 08:03:25 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!nmaster.kpnqwest.net!blackbush.xlink.net!kilbeggan.xlink.net!not-for-mail From: =?iso-8859-1?Q?J=FCrgen?= Grigat Newsgroups: comp.windows.x.intrinsics,comp.lang.ada,comp.windows.x.motif Subject: Using Xt intrinsics with Ada? Date: Wed, 31 Jan 2001 16:55:38 +0100 Organization: Avitech - Aviation Management Technologies GmbH Message-ID: <3A78357A.2BD8C0B1@avitech.de> NNTP-Posting-Host: 194.121.221.60 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: kilbeggan.xlink.net 980956605 23474 194.121.221.60 (31 Jan 2001 15:56:45 GMT) X-Complaints-To: news-support@xlink.net NNTP-Posting-Date: 31 Jan 2001 15:56:45 GMT X-Mailer: Mozilla 4.7 [de]C-CCK-MCD QXW03200 (WinNT; I) X-Accept-Language: de,en Xref: supernews.google.com comp.windows.x.intrinsics:49 comp.lang.ada:4764 comp.windows.x.motif:878 Date: 2001-01-31T15:56:45+00:00 List-Id: Hi, we are developing a program in Ada that has connections to other processes by sockets. The calls are done in Ada by using interfaces to C library functions. In order to avoid polling we wonder if we can use the event mechanism of X Toolkit Intrinsics. So we created a task which is calling a C-routine that itself calls XtAppMainLoop. The main program is an Ada routine. >From the functional point of view this seems to work. But we recognize a heavy CPU load even there is no traffic at the connection. Has anyone experience in using X Toolkit events in Ada tasking programs? Thanks for any hints. J�rgen