#include <Message_Block.h>
Inheritance diagram for ACE_Deadline_Message_Strategy:


Public Methods | |
| ACE_Deadline_Message_Strategy (u_long static_bit_field_mask=0x3FFUL, u_long static_bit_field_shift=10, u_long dynamic_priority_max=0x3FFFFFUL, u_long dynamic_priority_offset=0x200000UL) | |
| Ctor, with all arguments defaulted. More... | |
| virtual | ~ACE_Deadline_Message_Strategy (void) |
| Virtual dtor. More... | |
| virtual void | convert_priority (ACE_Time_Value &priority, const ACE_Message_Block &mb) |
| Dynamic priority conversion function based on time to deadline. More... | |
| virtual void | dump (void) const |
| Dump the state of the strategy. More... | |
Assigns dynamic message priority according to time to deadline. The message priority is divided into high and low order bit fields. The high order bit field is used for dynamic message priority, which is updated whenever the convert_priority() method is called. The low order bit field is used for static message priority and is left unchanged. The partitioning of the priority value into high and low order bit fields is done according to the arguments passed to the strategy object's constructor.
Definition at line 973 of file Message_Block.h.
|
||||||||||||||||||||
|
Ctor, with all arguments defaulted.
Definition at line 1245 of file Message_Block.cpp.
01249 : ACE_Dynamic_Message_Strategy (static_bit_field_mask, 01250 static_bit_field_shift, 01251 dynamic_priority_max, 01252 dynamic_priority_offset) 01253 { 01254 } |
|
|
Virtual dtor.
Definition at line 1256 of file Message_Block.cpp.
01257 {
01258 }
|
|
||||||||||||
|
Dynamic priority conversion function based on time to deadline.
Implements ACE_Dynamic_Message_Strategy. Definition at line 635 of file Message_Block.i. References ACE_Message_Block::msg_deadline_time.
00637 {
00638 // Convert absolute time passed in tv to negative time
00639 // to deadline of mb with respect to that absolute time.
00640 priority -= mb.msg_deadline_time ();
00641 }
|
|
|
Dump the state of the strategy.
Reimplemented from ACE_Dynamic_Message_Strategy. Definition at line 1261 of file Message_Block.cpp. References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_LIB_TEXT, ACE_TRACE, ACE_Dynamic_Message_Strategy::dump, and LM_DEBUG.
01262 {
01263 ACE_TRACE ("ACE_Deadline_Message_Strategy::dump");
01264
01265 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
01266
01267 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("ACE_Dynamic_Message_Strategy base class: \n")));
01268 this->ACE_Dynamic_Message_Strategy::dump ();
01269
01270 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nderived class: ACE_Deadline_Message_Strategy\n")));
01271
01272 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
01273 }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002