Updated logging to include the class/method so that it is more obvious where these...
[ACE_TAO.git] / TAO / tao / PortableServer / ThreadStrategySingle.cpp
blob6f58c76f9eca40c4ad93d4b09b62fe39f2c82da3
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
11 namespace TAO
13 namespace Portable_Server
15 int
16 ThreadStrategySingle::enter ()
18 return lock_.acquire();
21 int
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 (
36 ACE_Local_Service,
37 ThreadStrategySingle,
38 TAO::Portable_Server::ThreadStrategySingle)
40 ACE_STATIC_SVC_DEFINE (
41 ThreadStrategySingle,
42 ACE_TEXT ("ThreadStrategySingle"),
43 ACE_SVC_OBJ_T,
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 */