![]() |
![]() |
e-docs > Tuxedo > Administering a Tuxedo Application at Run Time > TP Framework |
Administering a Tuxedo Application at Run Time
|
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
Example
CORBA::Boolean Simple_i::_is_reentrant()
{ TP::userlog("_is_reentrant called in thread %ld",
(unsigned long)SIMPTHR_GETCURRENTTHREADID);
return CORBA_TRUE;
}
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |