home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!mprgate.mpr.ca!lichen!janzen
- From: janzen@lichen.mpr.ca (Martin Janzen)
- Subject: Re: two processes with one window?
- Message-ID: <1992Dec22.211402.2296@mprgate.mpr.ca>
- Sender: janzen@lichen (Martin Janzen)
- Reply-To: janzen@mprgate.mpr.ca
- Organization: MPR Teltech Ltd.
- References: <1992Dec18.144058.20973@walter.bellcore.com> <3944@creatures.cs.vt.edu>
- Date: Tue, 22 Dec 92 21:14:02 GMT
- Lines: 34
-
- In article <3944@creatures.cs.vt.edu>, ramakris@csgrad.cs.vt.edu (S.Ramakrishnan) writes:
- >In article <1992Dec18.144058.20973@walter.bellcore.com> john@bivalve.bellcore.com (John Snow)
- >writes:
- > >I have a situation where I want a background program to have control of
- > >a portion of a window, specifically a drawing area. It would be nice if
- > >I could fork off another process and pass it the widget id of the drawing
- > >area, but I know things couldn't possibly be that easy. Is it possible
- > >to do something like this, and if so, could someone give me some hints
- > >as to how to do it?
- >
- >[good advice deleted]
- >
- >Prior to forking, you may store the window id of
- >the drawing area and the (x,y,width,height) of the section that the child needs to
- >manage in a rootwindow property and have the child access it after it comes up.
-
- This is a good way for unrelated processes to share information, but it's
- not really necessary in this case. The parent simply needs to store the
- above information in some variables; the fork() call will make a copy
- of the parent's data area for the new child process.
-
- >Unless the drawing/repainting of the drawing area is unusually complex, the gain in
- >execution efficiency does not warrant the yucky implementation that
- >is bound to result with the use of forking.
-
- Agreed! Though if John _must_ have truly asynchronous updates to the
- drawing area even when the parent process is busy and can't process
- events, there may not be any alternative.
-
- --
- Martin Janzen janzen@mprgate.mpr.ca (134.87.131.13)
- MPR Teltech Ltd. Phone: (604) 293-5309
- 8999 Nelson Way Fax: (604) 293-6100
- Burnaby, BC, CANADA V5A 4B5
-