diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-08-06 21:20:27 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-08-06 21:20:27 +0000 |
commit | 5be4261ba87a878e771f804389546f46bdf397ea (patch) | |
tree | dae0ba47f5dec6eb475d2d904f62e2fbab1bdb76 /ace/Message_Queue_T.i | |
parent | 7ea712f3a21b264d96908ffa20135b6cdacbf612 (diff) | |
download | ATCD-5be4261ba87a878e771f804389546f46bdf397ea.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Message_Queue_T.i')
-rw-r--r-- | ace/Message_Queue_T.i | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ace/Message_Queue_T.i b/ace/Message_Queue_T.i index b26290cca81..735bcfef132 100644 --- a/ace/Message_Queue_T.i +++ b/ace/Message_Queue_T.i @@ -23,6 +23,8 @@ template <ACE_SYNCH_DECL> ACE_INLINE int ACE_Message_Queue<ACE_SYNCH_USE>::is_empty_i (void) { ACE_TRACE ("ACE_Message_Queue<ACE_SYNCH_USE>::is_empty_i"); + // This has to be an && in the following condition because there could be + // zero-length messages in message queue. return this->cur_bytes_ <= this->low_water_mark_ && this->cur_count_ <= 0; } |