Re: Shared Memory Question

New Message Reply Date view Thread view Subject view Author view

Joaquín Casillas (jcasilla++at++glup.irobot.uv.es)
Tue, 20 Jul 1999 10:21:40 +0200


Steve Woolsey escribió:
>
> I have an app I am doing in C++ that is forking a motif process and
> another process to calculate the movements for a number of object. I am
> trying to get the location of the object to pass back to the draw
> process, so I can update the pfDCS's. I have tried three different
> approaches, with no success.
>
> 1. I tried putting a pfVec3 into the Shared struct.
>
> typedef struct {
> pfPipeWindow *pw;
> pfChannel *chan;
> pfScene *scene;
> int exitFlag;
> pfDCS **objectDCS;
> pfVec3 *objectLocation;
> int numObjects;
> }SharedData;
>
> Then I tried declaring the pointer with:
>
> Shared->objectLocation = new pfVec3[numObjects];
>
> 2. Tried declaring a pfDataPool in the main process, and then attaching
> the movement process.
>
> pfDataPool *pool;
> pfVec3 *objectLocation;

Steve, another approach may be to fork a compute process that calculates
the movements of the objects and then use the mechanism of
pfFlux/pfEngine/pfFCS (use pfFCS's instead of pfDCS's for the moving
objects).

-----------------------------------------------
 Joaquin Casillas Melendez mailto:jcasilla++at++glup.irobot.uv.es
 LISITT (ARTEC) Phone: +34 6 364 2253
 Dept. Electr. & Informatics Addr: Poligono de la Coma s/n
 University of Valencia Valencia (SPAIN)


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Jul 20 1999 - 01:21:36 PDT

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