![]() |
![]() |
e-docs > Tuxedo > Administering a Tuxedo Application at Run Time > CORBA API |
Administering a Tuxedo Application at Run Time
|
Synopsis
Retrieves the context associated with the current thread. This method supports the development of a multithreaded server application.
C++ Binding
CORBA::ORB::Ctx get_ctx()
Arguments
None.
Return Value
Description
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.
Example
thread.context = TP::orb()->get_ctx();
See Also
CORBA::ORB::set_ctx
CORBA::ORB::clear_ctx
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |