1 #include "tao/orbconf.h"
3 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
5 #include "tao/PortableServer/ThreadStrategySingle.h"
6 #include "ace/Dynamic_Service.h"
7 #include "ace/Log_Msg.h"
9 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
13 namespace Portable_Server
16 ThreadStrategySingle::enter ()
18 return lock_
.acquire();
22 ThreadStrategySingle::exit ()
24 return lock_
.release();
27 ::PortableServer::ThreadPolicyValue
28 ThreadStrategySingle::type() const
30 return ::PortableServer::SINGLE_THREAD_MODEL
;
35 ACE_FACTORY_NAMESPACE_DEFINE (
38 TAO::Portable_Server::ThreadStrategySingle
)
40 ACE_STATIC_SVC_DEFINE (
42 ACE_TEXT ("ThreadStrategySingle"),
44 &ACE_SVC_NAME (ThreadStrategySingle
),
45 ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ
,
47 TAO_END_VERSIONED_NAMESPACE_DECL
49 #endif /* TAO_HAS_MINIMUM_POA == 0 */