Dirk Reiners (reiners++at++ecrc.de)
Thu, 2 Jul 1998 11:21:29 -0600
There is no safe way to access Widgets from another thread/process,
you'll have to setup your own handling in the interface thread, just
the way you do it now. But having a busy wait, even if only every 2
seconds is a bad solution, which also gives bad responsiveness.
One idea would be to open a pipe between the two processes, add the
pipe's fd to X's select set (XtAppAddInput) and send commands down that
pipe.
But as you have most of the dirty work already done, you could use a
signal handler (see man XtAppAddSignal) and signal your interface
process when the data in the shared arena has changed. Should be simple
enough.
Hope it helps
Dirk
--
-- Dirk Reiners reiners++at++ecrc.de, reiners++at++igd.fhg.de
-- ZGDV - AR Group http://www.igd.fhg.de/~reiners
-- Arabellastr. 17 (ECRC)
-- D-81925 Muenchen All standard disclaimers apply.
-- Truth is stranger than fiction because fiction has to make sense.
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:39 PDT