From: Gregory Eitzmann (eitzmann++at++mariah.engr.sgi.com)
Date: 02/29/2000 13:56:18
Ulrich Hertlein wrote:
> ...
> That brings me to a related question that's been keeping me busy for the
> last couple of days.
>
> I've developed an application that (supposedly) shows a multi-pipe video
> texture. But the texture only shows up on the first pipe or rather on
> the pipe where the pfTexture was initialized (*not* created, that took
> place before pfConfig).
>
> I'm suspecting that the DMbuffer is not allocated from pf shared memory
> and so it's only visible for one process. So my question is, how can I
> setup a pool of DMbuffers that's allocated from the Performer shared
> arena?
>
> Thanks,
> -Ulrich
You need not allocate dmBuffers from the Performer arena -- the
dmBuffer allocator is in parts of the system distant from Performer
and would not work properly with pfMalloc.
However, the contents of the dmBuffer pool is set up to be shared between
multiple processes and you should be able to read those buffers. From
what I remember, you should be able to use dmBufferAttach(3dm) to read
the buffer from a forked process. You can pass the DMbuffer* handle in
the arena. This man page may help:
-- Gregory Eitzmann
This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 13:56:21 PST