#include <Message_Block.h>
Inheritance diagram for ACE_Laxity_Message_Strategy:
Public Member Functions | |
ACE_Laxity_Message_Strategy (unsigned long static_bit_field_mask=0x3FFUL, unsigned long static_bit_field_shift=10, unsigned long dynamic_priority_max=0x3FFFFFUL, unsigned long dynamic_priority_offset=0x200000UL) | |
Ctor, with all arguments defaulted. | |
virtual | ~ACE_Laxity_Message_Strategy (void) |
virtual dtor. | |
virtual void | convert_priority (ACE_Time_Value &priority, const ACE_Message_Block &mb) |
Dynamic priority conversion function based on laxity. | |
virtual void | dump (void) const |
Dump the state of the strategy. |
Assigns dynamic message priority according to laxity (time to deadline minus worst case execution time). 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 1018 of file Message_Block.h.
|
Ctor, with all arguments defaulted.
Definition at line 1327 of file Message_Block.cpp.
01331 : ACE_Dynamic_Message_Strategy (static_bit_field_mask, 01332 static_bit_field_shift, 01333 dynamic_priority_max, 01334 dynamic_priority_offset) 01335 { 01336 } |
|
virtual dtor.
Definition at line 1338 of file Message_Block.cpp.
01339 { 01340 } |
|
Dynamic priority conversion function based on laxity.
Implements ACE_Dynamic_Message_Strategy. Definition at line 1343 of file Message_Block.cpp. References ACE_Message_Block::msg_deadline_time(), and ACE_Message_Block::msg_execution_time().
01345 { 01346 // Convert absolute time passed in tv to negative 01347 // laxity of mb with respect to that absolute time. 01348 priority += mb.msg_execution_time (); 01349 priority -= mb.msg_deadline_time (); 01350 } |
|
Dump the state of the strategy.
Reimplemented from ACE_Dynamic_Message_Strategy. Definition at line 1354 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.
01355 { 01356 #if defined (ACE_HAS_DUMP) 01357 ACE_TRACE ("ACE_Laxity_Message_Strategy::dump"); 01358 01359 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); 01360 01361 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("ACE_Dynamic_Message_Strategy base class: \n"))); 01362 this->ACE_Dynamic_Message_Strategy::dump (); 01363 01364 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nderived class: ACE_Laxity_Message_Strategy\n"))); 01365 01366 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); 01367 #endif /* ACE_HAS_DUMP */ 01368 } |