Re: global variables sharing among processes

New Message Reply Date view Thread view Subject view Author view

Rémi Arnaud (remi++at++remi.engr.sgi.com)
Mon, 9 Jun 1997 12:45:21 -0700 (PDT)


Charlie H. Chang wrote:
>
> I have a Performer program, and when I update some of the global
> variables,
> it doesn't propagate to other processes.
> I thought Performer uses sproc to fork child processes, so all global
> variables are
> shared among child processes. Is that right?

 No, Performer uses fork, which explains your problem.
 You have to use the shared arena to share data between processes,
 furthermore, you have to use pfCycleBuffer to manage the multiple
 values a data can have when used by more than one process in different
 stages of the pfPipe pipeline.

 Best Regards

    _ / _ _
|_) _ ._ _ o /\ |_)|\ | /\ | || \
| \(/_| | || /--\| \| \|/--\|_||_/
                                           
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com
   SGI DevForum 97 info: http://www.sgi.com/Forum97/


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:55:25 PDT

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