CORBA Programming Reference
Retrieves the context associated with the current thread. This method supports the development of a multithreaded server application.
CORBA::ORB::Ctx get_ctx()
Use this method to retrieve the context associated with the current thread. This context can then be used to initialize other threads that the application creates and manages.
When an object creates a thread, the object invokes this operation on the ORB to obtain system context information that the object can pass on to the thread. This operation must be called from a thread that already has a context. For example, the thread in which a method was dispatched will already have a content.
thread.context = TP::orb()->get_ctx();