Re: Overloading new to access shared memory arena.

New Message Reply Date view Thread view Subject view Author view

Guy Premont (silicon-worlds++at++calva.net)
Fri, 26 Jun 1998 09:58:21 +0200


Pete Willemsen wrote:
>
> In our performer application, we used the following method to create
> shared memory objects:
>
> class ShmObject {
> public:
> void* operator new(size_t size);
> void operator delete(void*);
> };
>

I think it should also be possible to derive the object from pfObject
and then use the Performer new operator.

class UserDefined : public pfObject
{
        UserDefined() : pfObject()
        {
            /* whatever */
        };

        /* etc... */
};

All the memory management is now done through Performer pfObject class.

Guy Premont

-- 
===========================================
          Silicon Worlds S.A.  
12, rue de Chatillon    75014 Paris  France
       Tel: +33 (01) 53.90.11.11
       Fax: +33 (01) 53.90.11.12
===========================================
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:35 PDT

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