Re: I need help with using arenas in C and C++

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Thu, 25 Nov 1999 21:33:36 -0800


You must sent the pointer to the other processes somehow. Writing it to
a region of shared memory allocated prior to pfConfig is the common
approach. The *original* address will be shared because it was written
before the fork and copied, so that shared memory area can be used to
pass other pointers which will then be available for other processes to
read.

Cheers,ANgus.

Rolf.Schlup++at++se.admin.ch wrote:
>
> I need some major help with Arenas. I could use a resource of sample code
> to help me. I believe I have successfully usinit'd an arena and usmalloc'd
> a location in Arena memory. I can't seem to access this memory from another
> process and make changes to the contents of the memory.
>
> Rolf Schlup
> Swiss Electronics Enterprise
> Stauffacherstrasse 65
> 3000 Bern 22
> Phone: ++41 31 324 8879
> Fax : ++41 31 324 7143
> Mailto:Rolf.Schlup++at++se.admin.ch
> http:\\www.se-online.ch
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Success is the ability to go from one failure to another with
 no loss of enthusiasm."    -    Winston Churchill.

Performer + OpenGL examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Nov 25 1999 - 21:33:40 PST

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