From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,478987266d0dbf45,start X-Google-Attributes: gidf678f,public X-Google-Thread: 10b6ac,478987266d0dbf45,start X-Google-Attributes: gid10b6ac,public From: Steinert D A,62534, 1007-K MS-7053 Subject: Combining X with DCE pthreads and rpcs??? Date: 1995/08/18 Message-ID: <41216j$oo5@stc06.ctd.ornl.gov>#1/1 X-Deja-AN: 108419332 distribution: inet organization: Oak Ridge National Lab, Oak Ridge, TN newsgroups: comp.windows.x.motif,comp.unix.osf.misc Can an X application use pthreads? More specifically, I would like to fire off a thread that does an rpc_server_listen() for data input from a DCE client. The problem (I think ) is that rpc_server_listen stays in an infinite loop just like XtAppMainLoop. It appears that once the XtAppMainLoop gets cranked up the rpc_server_listen blocks. Sometimes I get a connection from the DCE client but most of the time I'm in the XtAppMainLoop before the DCE client sends information. Any help on combining X with DCE and threads would be appreciated. Deryl Steinert Lockheed Martin Energy Systems Oak Ridge, TN. dus@ornl.gov