diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-10-07 23:50:08 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-10-07 23:50:08 +0000 |
commit | e095eecfca25482b510bf86b84c7fddb11d592a7 (patch) | |
tree | 01c94324085158bbf64331947d9f26226c4a2c17 /ace/Message_Queue_T.h | |
parent | f8530a7b1f9727baa2a1606e97df41c5d33e33bc (diff) | |
download | ATCD-e095eecfca25482b510bf86b84c7fddb11d592a7.tar.gz |
ChangeLogTag:Thu Oct 07 18:47:03 1999 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'ace/Message_Queue_T.h')
-rw-r--r-- | ace/Message_Queue_T.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/ace/Message_Queue_T.h b/ace/Message_Queue_T.h index bbf0a4cd182..6543244d54a 100644 --- a/ace/Message_Queue_T.h +++ b/ace/Message_Queue_T.h @@ -175,10 +175,23 @@ public: // = Queue statistic methods. virtual size_t message_bytes (void); - // Number of total bytes on the queue. + // Number of total bytes on the queue, i.e., sum of the message + // block sizes. + virtual size_t message_length (void); + // Number of total length on the queue, i.e., sum of the message + // block lengths. virtual size_t message_count (void); // Number of total messages on the queue. + // = Manual changes to these stats (used when queued message blocks + // change size or lengths). + virtual void message_bytes (size_t new_size); + // New value of the number of total bytes on the queue, i.e., sum of + // the message block sizes. + virtual void message_length (size_t new_length); + // New value of the number of total length on the queue, i.e., sum + // of the message block lengths. + // = Flow control methods. virtual size_t high_water_mark (void); @@ -307,6 +320,9 @@ protected: size_t cur_bytes_; // Current number of bytes in the queue. + size_t cur_length_; + // Current length of messages in the queue. + size_t cur_count_; // Current number of messages in the queue. |