Skip navigation.

CORBA Programming Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

 


CORBA::ORB::get_ctx

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

CORBA::ORB::Ctx

The context associated with this thread.

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

 

Skip navigation bar  Back to Top Previous Next