summaryrefslogtreecommitdiff
path: root/ACE/ace/Message_Queue_T.h
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2008-05-09 12:05:34 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2008-05-09 12:05:34 +0000
commit6895fd20790056373d17003a96395932eb7f1249 (patch)
treea5bc4d4b3354f059d997f0718fa3f7774333409f /ACE/ace/Message_Queue_T.h
parent0c009665908d617d2dcde99c1edcbe98a47af4b9 (diff)
downloadATCD-6895fd20790056373d17003a96395932eb7f1249.tar.gz
Fri May 9 12:04:15 UTC 2008 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'ACE/ace/Message_Queue_T.h')
-rw-r--r--ACE/ace/Message_Queue_T.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ACE/ace/Message_Queue_T.h b/ACE/ace/Message_Queue_T.h
index 62869da889e..22eb8e2b6de 100644
--- a/ACE/ace/Message_Queue_T.h
+++ b/ACE/ace/Message_Queue_T.h
@@ -12,6 +12,7 @@
#ifndef ACE_MESSAGE_QUEUE_T_H
#define ACE_MESSAGE_QUEUE_T_H
+
#include /**/ "ace/pre.h"
#include "ace/Message_Queue.h"
@@ -33,6 +34,16 @@ class ACE_Message_Queue_Vx;
class ACE_Message_Queue_NT;
#endif /* ACE_HAS_WIN32_OVERLAPPED_IO*/
+#if defined (ACE_HAS_MONITOR_POINTS) && ACE_HAS_MONITOR_POINTS == 1
+namespace ACE
+{
+ namespace MonitorControl
+ {
+ class Size_Monitor;
+ }
+}
+#endif /* ACE_HAS_MONITOR_POINTS==1 */
+
/**
* @class ACE_Message_Queue
*
@@ -593,6 +604,11 @@ protected:
/// Used to make threads sleep until the queue is no longer full.
ACE_SYNCH_CONDITION_T not_full_cond_;
+ /// Sends the size of the queue whenever it changes.
+#if defined (ACE_HAS_MONITOR_POINTS) && (ACE_HAS_MONITOR_POINTS == 1)
+ ACE::MonitorControl::Size_Monitor *monitor_;
+#endif
+
private:
// = Disallow these operations.
@@ -1473,4 +1489,5 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#include /**/ "ace/post.h"
+
#endif /* ACE_MESSAGE_QUEUE_T_H */