blob: 13ee962af2f4b532b9fbbbe6d56e908f9e7eb5b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
// -*- C++ -*-
//$Id$
/************************************************************************/
// Methods for TAO_Queued_Data
/************************************************************************/
ACE_INLINE TAO_Queued_Data *
TAO_Queued_Data::get_queued_data (void)
{
// @@TODO: Use the global pool for allocationg...
TAO_Queued_Data *qd = 0;
ACE_NEW_RETURN (qd,
TAO_Queued_Data,
0);
return qd;
}
ACE_INLINE void
TAO_Queued_Data::release (TAO_Queued_Data *qd)
{
ACE_Message_Block::release (qd->msg_block_);
// @@TODO: Use the global pool for releasing..
delete qd;
}
ACE_INLINE CORBA::ULong
TAO_Incoming_Message_Queue::queue_length (void)
{
return this->size_;
}
ACE_INLINE int
TAO_Incoming_Message_Queue::is_tail_complete (void)
{
// If the size is 0 return -1
if (this->size_ == 0)
return -1;
if (this->size_ &&
this->queued_data_->missing_data_ == 0)
return 1;
return 0;
}
ACE_INLINE int
TAO_Incoming_Message_Queue::is_head_complete (void)
{
if (this->size_ == 0)
return -1;
if (this->size_ &&
this->queued_data_->next_->missing_data_ == 0)
return 1;
return 0;
}
ACE_INLINE size_t
TAO_Incoming_Message_Queue::missing_data_tail (void) const
{
if (this->size_ != 0)
return this->queued_data_->missing_data_;
return 0;
}
ACE_INLINE TAO_Queued_Data *
TAO_Incoming_Message_Queue::get_node (void)
{
return TAO_Queued_Data::get_queued_data ();
}
|