pfDataPool - can I have 2 (or more)?

New Message Reply Date view Thread view Subject view Author view

From: Dan Johnston (dan.johnston++at++nrc.ca)
Date: 12/13/2001 10:54:01


Hi Performers!

I would like to establish a shared memory link to a
separate compute-bound process (i.e. not part of
the performer app-cull-isect-draw process
group). There is a lot of data to exchange between
the processes so my existingTCPIP connection
would be too slow.

I was looking at pfMemory with a shared memory
arena, then I spotted pfDataPool and the code
in /usr/share/Performer/src/lib/libpfutil/shmem.c
DataPool memory is more attractive because it
already has the lock/unlock and reference
count built in.

I know that Performer uses the mapped memory
in "/usr/tmp/pfutil....dpool" for its own internal
use (store classes of texture, xwin. GUI, mouse, etc).

Can I create another mapped memory pool for
my data exchange? Will it interfer with the
existing (new mapped name of course)? Can
I create pfObject classes in this memory?

Is there a better way that would allow me to use
either a temp file or pure memory depending
on the size of data transfer?

Thanks for your help!

Dan

--
      ___|__    |
      /  |  \   ||\      Daniel (Dan) Johnston
     /___|___\  || \     Dan.Johnston++at++nrc.ca
    _____|____  ||  \    National Research Council of Canada, London, ON
    |    |    | ||   \   Integrated Manufacturing Technologies Institute
\___|    |    | ||____\  Tel: (519) 430-7081   Fax: (519) 430-7090
 \_o_\___|____|_|______\_    Inst: http://www.nrc.ca/imti
  \                o /    These opinions are my own! Not those of NRC.
   \________________/    Virtual Reality:
                        http://www.nrc.ca/imti/vetc/home.html
 More Tall Ships - Fewer Computers!


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Dec 13 2001 - 11:01:22 PST

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