Archived
This forum has been archived. Please start a new discussion on GitHub.
How Can I get the ThreadHook?
colorado
in Help Center
I find in Ice internal, using follow statement can get ThreadHook:
ThreadHookPtr threadHook = ThreadHookPtr::dynamicCast(IceInternal::getInstance(_communicator)->initializationData().threadHook);
How can I get the ThreadHook in main thread? I can not use IceInternal::getInstance.
How can I get a coomunicator's initializationData?
I found in ThreadHookPlugin's constructor:
IceInternal::InstancePtr instance = IceInternal::getInstance(communicator);
instance->setThreadHook(threadHook);
}
Can I get communicator instance out of IceInternal, so I can call setThreadHook?
ThreadHookPtr threadHook = ThreadHookPtr::dynamicCast(IceInternal::getInstance(_communicator)->initializationData().threadHook);
How can I get the ThreadHook in main thread? I can not use IceInternal::getInstance.
How can I get a coomunicator's initializationData?
I found in ThreadHookPlugin's constructor:
IceInternal::InstancePtr instance = IceInternal::getInstance(communicator);
instance->setThreadHook(threadHook);
}
Can I get communicator instance out of IceInternal, so I can call setThreadHook?
0
