Hi Stefan and thanks for your reply..

Maybe a bit more info about this would help clarify what I mean exactly.. 

As discussed in previous sessions we are working with sequel as a base and
we have implemented a "LazyPointer" template to manage the mapping of slave
instances. The master UUIDs are serialized on the slaves and then for each
master instance a "LazyPointer" is created which holds the UUID of this
master instance of the object.

The mapping then occurs through operator overloading when the "LazyPointer"
is being accessed.. Something along these lines:

(snippet)

T* operator->()
{           
       if (!mPointer && mID != 0)
       {   
          if (isMaster())
          {
             mPointer =
static_cast<T*>(globalState::getAppPtrBase()->mapObject(mID));
          }   
          mPointer =
static_cast<T*>(globalState::getRendererBase()->mapObject(mID));
    }   
   return mPointer;
}       

where mID is the master instance UUID of the shared object. Now, the problem
is that the globalState interface that I have right know is implemented as a
singleton which obviously breaks in multi-pipe configs since in these cases
we have more than one renderer. On the other hand I would really like to
keep a global instance of the interface since this would make life much
easier for other people that have to use the interface and have no
experience with equalizer.

Do you have any suggestions on how it would be best to approach this case ?? 

Btw all these are on the context of a framework that combines equalizer with
openframeworks and has to be as simple as possible for other people to work
with, without any prior experience on the internals of equalizer.

Thanks again for your help,

Petros




--
View this message in context: 
http://software.1713.n2.nabble.com/Updating-various-data-to-clients-tp7585908p7586345.html
Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.

_______________________________________________
eq-dev mailing list
[email protected]
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Reply via email to