Re: Wireframes

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Wed, 7 Jan 1998 16:23:40 -0800


On Jan 7, 3:44pm, A. Ballard Andrews wrote:
> Subject:
> hi Again,
>
> Does anyone have some sample code that
> shows how to do interprocess communication
> (I'm a novice) between Performer and
> another app.? I want to be able to
> pass objects into Performer.
>
> I would also like to know if anyone has
> some sample code using sockets for
> accross the net to modify e.g.,
> the shared memory structure.
>

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.

> Unlike the person who earlier made a plea
> for Flybox code, I must warn you that
> your generosity will not result in my
> spending more time with my three kids,
> since I plan to do this anyway,
> however, you may experience a slight
> tingling sensation and an inner warmth
> due to your kind act.
>

This tingling sensation is really unpleasant.

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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:32 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.