OpenDDS  Snapshot(2023/04/28-20:55)
TransportSendBuffer.inl
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 
9 
10 namespace OpenDDS {
11 namespace DCPS {
12 
13 ACE_INLINE size_t
15 {
16  return this->capacity_;
17 }
18 
19 ACE_INLINE void
21 {
22  this->strategy_ = strategy;
23 }
24 
25 
26 // class SingleSendBuffer
27 
28 ACE_INLINE size_t
30 {
31  ACE_GUARD_RETURN(ACE_Thread_Mutex, g, mutex_, this->n_chunks_);
32  return this->n_chunks_;
33 }
34 
35 ACE_INLINE void
37 {
38  ACE_GUARD(ACE_Thread_Mutex, g, mutex_);
39  pre_seq_.insert(sequence);
40 }
41 
42 
43 } // namespace DCPS
44 } // namespace OpenDDS
45 
#define ACE_GUARD(MUTEX, OBJ, LOCK)
void bind(TransportSendStrategy *strategy)
#define ACE_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN)
void pre_insert(SequenceNumber sequence)
Sequence number abstraction. Only allows positive 64 bit values.
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
#define ACE_INLINE
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28