> I am trying to find if there is a way to know on which context a deserialize function of a shared object is called. What I mean by this is if there is a way to know ( and be able to grab ) for example the specific slave ( renderer lets say ) inside the context of which the deserialize function is being called at any particular moment.
Not sure what information you’re looking for. Does DataIStream::getLocalNode help? This can be cast into an eq::Client within an Eq app.
Cheers,
Stefan.
signature.asc (858 bytes) <http://software.1713.n2.nabble.com/attachment/7586328/0/signature.asc>
--
View this message in context: http://software.1713.n2.nabble.com/Updating-various-data-to-clients-tp7585908p7586328.html
On 22. Sep 2014, at 17:33, Petros.Kataras [via Software] <ml-node+s171...@n2.nabble.com> 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,
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