OpenDDS  Snapshot(2023/04/28-20:55)
ThreadSynchStrategy.h
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #ifndef OPENDDS_DCPS_TRANSPORT_FRAMEWORK_THREADSYNCHSTRATEGY_H
9 #define OPENDDS_DCPS_TRANSPORT_FRAMEWORK_THREADSYNCHSTRATEGY_H
10 
11 #include "dds/DCPS/dcps_export.h"
12 #include "dds/DCPS/RcObject.h"
13 #include "ace/Synch_Traits.h"
14 
16 
17 namespace OpenDDS {
18 namespace DCPS {
19 
20 class ThreadSynch;
21 class ThreadSynchResource;
22 
23 //MJM: Some class documentation here would be extremely helpful.
25  : public virtual RcObject
26 {
27 public:
28 
29  virtual ~ThreadSynchStrategy();
30 
31  virtual ThreadSynch* create_synch_object(
32  ThreadSynchResource* synch_resource,
33  long priority,
34  long scheduler) = 0;
35 
36 protected:
37 
39 };
40 
41 } // namespace DCPS
42 } // namespace OpenDDS
43 
45 
46 #if defined (__ACE_INLINE__)
47 #include "ThreadSynchStrategy.inl"
48 #endif /* __ACE_INLINE__ */
49 
50 #endif /* OPENDDS_DCPS_THREADSYNCHSTRATEGY_H */
#define OpenDDS_Dcps_Export
Definition: dcps_export.h:24
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28