summaryrefslogtreecommitdiff
path: root/ace/Message_Queue.h
diff options
context:
space:
mode:
authorcdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-24 19:43:11 +0000
committercdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-24 19:43:11 +0000
commit1e872bda460843dec48dbbc5d504621b94a25ed5 (patch)
treef3f555254869019012234fb974d0ba63cad105b5 /ace/Message_Queue.h
parent8d91978f639a4377e2b23f01a438e3645d93f0dc (diff)
downloadATCD-1e872bda460843dec48dbbc5d504621b94a25ed5.tar.gz
added message queue factory comments
Diffstat (limited to 'ace/Message_Queue.h')
-rw-r--r--ace/Message_Queue.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ace/Message_Queue.h b/ace/Message_Queue.h
index 50d1e93b12d..a6d625829ab 100644
--- a/ace/Message_Queue.h
+++ b/ace/Message_Queue.h
@@ -458,11 +458,25 @@ private:
template <ACE_SYNCH_DECL>
class ACE_Export ACE_Message_Queue_Factory
{
+ // = TITLE
+ // ACE_Message_Queue_Factory is a static factory class template which
+ // provides a separate factory method for each of the major kinds of
+ // priority based message dispatching: static, earliest deadline first
+ // (EDF), and minimum laxity first (MLF).
+ //
+ // = DESCRIPTION
+ // The ACE_Dynamic_Message_Queue class assumes responsibility for
+ // releasing the resources of the strategy with which it was
+ // constructed: the user of a message queue constructed by
+ // any of these factory methods is only responsible for
+ // ensuring destruction of the message queue itself.
+
public:
static ACE_Message_Queue<ACE_SYNCH_USE> *
create_static_message_queue (size_t hwm = DEFAULT_HWM,
size_t lwm = DEFAULT_LWM,
ACE_Notification_Strategy * = 0);
+ // factory method for a statically prioritized ACE_Message_Queue
static ACE_Dynamic_Message_Queue<ACE_SYNCH_USE> *
create_deadline_message_queue (size_t hwm = DEFAULT_HWM,
@@ -473,6 +487,7 @@ public:
u_long pending_threshold = 0x200000UL, // 2^(22-1)
u_long dynamic_priority_max = 0x3FFFFFUL, // 2^(22)-1
u_long dynamic_priority_offset = 0x200000UL); // 2^(22-1)
+ // factory method for a dynamically prioritized (by time to deadline) ACE_Dynamic_Message_Queue
static ACE_Dynamic_Message_Queue<ACE_SYNCH_USE> *
create_laxity_message_queue (size_t hwm = DEFAULT_HWM,
@@ -483,6 +498,7 @@ public:
u_long pending_threshold = 0x200000UL, // 2^(22-1)
u_long dynamic_priority_max = 0x3FFFFFUL, // 2^(22)-1
u_long dynamic_priority_offset = 0x200000UL); // 2^(22-1)
+ // factory method for a dynamically prioritized (by laxity) ACE_Dynamic_Message_Queue
};
// This must go here to avoid problems with circular includes.
@@ -501,3 +517,4 @@ public:
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#endif /* ACE_MESSAGE_QUEUE_H */
+