OpenDDS  Snapshot(2023/04/28-20:55)
ThreadSynchResource.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_THREADSYNCHRESOURCE_H
9 #define OPENDDS_DCPS_TRANSPORT_FRAMEWORK_THREADSYNCHRESOURCE_H
10 
11 #include "dds/DCPS/dcps_export.h"
12 #include "dds/DCPS/TimeTypes.h"
13 
15 
16 namespace OpenDDS {
17 namespace DCPS {
18 
20 public:
21 
22  virtual ~ThreadSynchResource();
23 
24  virtual int wait_to_unclog();
25  void set_handle(ACE_HANDLE handle);
26 
27 protected:
28 
29  virtual void notify_lost_on_backpressure_timeout() = 0;
30 
32  ACE_HANDLE handle_;
34 };
35 
36 } // namespace DCPS
37 } // namespace OpenDDS
38 
40 
41 #if defined (__ACE_INLINE__)
42 #include "ThreadSynchResource.inl"
43 #endif /* __ACE_INLINE__ */
44 
45 #endif /* OPENDDS_DCPS_THREADSYNCHRESOURCE_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