Skip navigation.

CORBA Programming Reference

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

 


Tobj_ServantBase::_is_reentrant()

Synopsis

Indicates that the object supports concurrent, reentrant invocations. This method supports the development of a multithreaded server application.

C++ Binding

CORBA::Boolean _is_reentrant()

Arguments

None.

Description

The BEA Tuxedo server infrastructure calls this method to determine whether the servant implementation supports a reentrant invocation. To support reentrancy, a servant must include the necessary code to protect the integrity of its state while multiple threads interact with the object.

The Tobj_ServantBase class provides a default implementation of the _is_reentrant method that returns FALSE.

Return Value

CORBA::Boolean

Returns TRUE if the servant can support reentrancy.

Example

CORBA::Boolean Simple_i::_is_reentrant()
{ TP::userlog("_is_reentrant called in thread %ld",
(unsigned long)SIMPTHR_GETCURRENTTHREADID);
return CORBA_TRUE;
}

 

Skip navigation bar  Back to Top Previous Next