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.5 required=5.0 tests=BAYES_00,MSGID_RANDY, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,9f5633938c224117 X-Google-Attributes: gid103376,public X-Google-Thread: 10b6ac,9f5633938c224117 X-Google-Attributes: gid10b6ac,public X-Google-Thread: 11038b,9f5633938c224117 X-Google-Attributes: gid11038b,public X-Google-ArrivalTime: 2001-01-31 11:50:08 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!xfer10.netnews.com!netnews.com!newsfeed.skycache.com!Cidera!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Kevin Kronmiller Newsgroups: comp.windows.x.intrinsics,comp.lang.ada,comp.windows.x.motif Subject: Re: Using Xt intrinsics with Ada? Date: Wed, 31 Jan 2001 19:42:24 GMT Organization: Deja.com Message-ID: <959pqv$tgq$1@nnrp1.deja.com> References: <3A78357A.2BD8C0B1@avitech.de> NNTP-Posting-Host: 206.105.44.3 X-Article-Creation-Date: Wed Jan 31 19:42:24 2001 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98) X-Http-Proxy: 1.1 x66.deja.com:80 (Squid/1.1.22) for client 206.105.44.3 X-MyDeja-Info: XMYDJUIDkronmiller Xref: supernews.google.com comp.windows.x.intrinsics:52 comp.lang.ada:4779 comp.windows.x.motif:885 Date: 2001-01-31T19:42:24+00:00 List-Id: Sounds like a job for select() unless I misunderstand your problem. Kevin Kronmiller In article <3A78357A.2BD8C0B1@avitech.de>, =?iso-8859-1?Q?J=FCrgen?= Grigat wrote: > 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 > > Sent via Deja.com http://www.deja.com/