Hi Petros,

On 22. Sep 2014, at 17:33, Petros.Kataras [via Software] 
<[email protected]> wrote:

> 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 ?? 

I would try to get the globalState from the eq::Pipe/seq::Renderer instead of a 
singleton. If that’s too cumbersome, you can use thread local storage to have a 
per-thread singleton. This assumes you want to maintain the objects per GPU 
render thread.


HTH,

Stefan.
-- 
http://www.eyescale.ch
https://github.com/Eyescale/
http://www.linkedin.com/in/eilemann






signature.asc (858 bytes) 
<http://software.1713.n2.nabble.com/attachment/7586347/0/signature.asc>




--
View this message in context: 
http://software.1713.n2.nabble.com/Updating-various-data-to-clients-tp7585908p7586347.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