Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Wed, 7 Jan 1998 16:23:43 -0800
Look at complex.c.
The idea is to create an area of memory which
all processes point to simultaneously. Pointers
returned from shared memory allocations are the
same physical memory for all processes BUT you
only have one process which has called malloc.
The trick is to call a shared memory allocation
prior to the fork which is triggered when you
call pfConfig.
You can pass new pointers via this shared memory
later or just allocate everything you need at
the start.
You should also investigate using pfFlux buffers
to support frame sync downstream data passing.
Cheers,Angus.
--
"They can't break you if you don't have a spine."
- Wally.
=======================================================================
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:56:32 PDT