=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tao / PortableServer / ThreadStrategySingle.h
blob29baed0bedb89722030ce59c3964b39f3a7069c4
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file ThreadStrategySingle.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
8 */
9 //=============================================================================
11 #ifndef TAO_THREADSTRATEGYSINGLE_H
12 #define TAO_THREADSTRATEGYSINGLE_H
13 #include /**/ "ace/pre.h"
15 #include "tao/PortableServer/portableserver_export.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/PortableServer/ThreadStrategy.h"
23 #include "tao/orbconf.h"
25 #include "ace/Service_Config.h"
27 // Locking
28 #include "ace/Synch_Traits.h"
29 #include "ace/Thread_Mutex.h"
30 #include "ace/Recursive_Thread_Mutex.h"
31 #include "ace/Null_Mutex.h"
33 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
35 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
37 namespace TAO
39 namespace Portable_Server
41 class ThreadStrategySingle : public ThreadStrategy
43 public:
44 int enter () override;
46 int exit () override;
47 private:
48 TAO_SYNCH_RECURSIVE_MUTEX lock_;
53 TAO_END_VERSIONED_NAMESPACE_DECL
55 #endif /* TAO_HAS_MINIMUM_POA == 0 */
57 #include /**/ "ace/post.h"
58 #endif /* TAO_THREADSTRATEGYSINGLE_H */