Re: Shared Memory Problem (on IRIX and Linux)

New Message Reply Date view Thread view Subject view Author view

From: Guillaume Smietanski (gsmietan++at++fmr.tu-darmstadt.de)
Date: 01/26/2001 07:38:00


Mario Veraart wrote:
>
> You make an error here.
> NEVER call pfGetSharedArena() before pfInit().
> That is because pfInit() allocates the shared arena.
> A much nicer way of writing your line above is

I am sorry I wrote in my last email a mistake I should write: that we
call pfInit at first and after this we build the shared arena.

> tiles = (exchangeDB*) pfMalloc(sizeof(exchangeDB)*numberOfTiles,
> pfGetSharedArena());
>
> > The exchangeDB is an object which contain a system for the communication
> > between the application and the Database process.
>
> Aren't you using the pfBuffer sceme. Read the man page pfBuffer and
> use the example. Then you don't have to use you own buffer stuff (tiles).
>
We use the the pfBuffer sceme. I wanted to explain that with exchangedb
the database receive some information like:
-delete a tiles of the terrain
-build a new tiles of the terrain (a very important information is the
path and the name of the new tile)
-and replace a tiles of the terrain (same comments)
With this class give a feed back to the application process: it could be
possible that a replaced tiles is at the end of the load not more
necessary and that the application wait another tiles as the new ones.

I hope that it is more clear, I am so sorry for the misunderstanding.
In all case thanks a lot Mario.

Guillaume.



New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Jan 26 2001 - 07:39:04 PST

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