summaryrefslogtreecommitdiff
path: root/ACE/ace/Message_Block.inl
diff options
context:
space:
mode:
authorkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-01-31 03:33:47 +0000
committerkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-01-31 03:33:47 +0000
commita8adf7af73074f578a47a968c7e1cf53ac1dca5a (patch)
tree5a16458f36743b0a9515d23d8798801d368d85d9 /ACE/ace/Message_Block.inl
parent869c5eb7fe85445d92e26d4210730f386b2eed5f (diff)
downloadATCD-a8adf7af73074f578a47a968c7e1cf53ac1dca5a.tar.gz
ChangeLogTag: Wed Jan 31 03:25:51 UTC 2007 Krishnakumar B <kitty@nospam.invalid.domain>
Diffstat (limited to 'ACE/ace/Message_Block.inl')
-rw-r--r--ACE/ace/Message_Block.inl43
1 files changed, 0 insertions, 43 deletions
diff --git a/ACE/ace/Message_Block.inl b/ACE/ace/Message_Block.inl
index 2f67cc25078..85261360be6 100644
--- a/ACE/ace/Message_Block.inl
+++ b/ACE/ace/Message_Block.inl
@@ -579,48 +579,5 @@ ACE_Dynamic_Message_Strategy::dynamic_priority_offset (unsigned long ul)
// set offset for boundary between signed range and unsigned range
-ACE_INLINE ACE_Dynamic_Message_Strategy::Priority_Status
-ACE_Dynamic_Message_Strategy::priority_status (ACE_Message_Block & mb,
- const ACE_Time_Value & tv)
-{
- // default the message to have pending priority status
- Priority_Status status = ACE_Dynamic_Message_Strategy::PENDING;
-
- // start with the passed absolute time as the message's priority, then
- // call the polymorphic hook method to (at least partially) convert
- // the absolute time and message attributes into the message's priority
- ACE_Time_Value priority (tv);
- convert_priority (priority, mb);
-
- // if the priority is negative, the message is pending
- if (priority < ACE_Time_Value::zero)
- {
- // priority for pending messages must be shifted
- // upward above the late priority range
- priority += pending_shift_;
- if (priority < min_pending_)
- priority = min_pending_;
- }
- // otherwise, if the priority is greater than the maximum late
- // priority value that can be represented, it is beyond late
- else if (priority > max_late_)
- {
- // all messages that are beyond late are assigned lowest priority (zero)
- mb.msg_priority (0);
- return ACE_Dynamic_Message_Strategy::BEYOND_LATE;
- }
- // otherwise, the message is late, but its priority is correct
- else
- status = ACE_Dynamic_Message_Strategy::LATE;
-
- // use (fast) bitwise operators to isolate and replace
- // the dynamic portion of the message's priority
- mb.msg_priority((mb.msg_priority() & static_bit_field_mask_) |
- ((priority.usec () + ACE_ONE_SECOND_IN_USECS * priority.sec ()) <<
- static_bit_field_shift_));
-
- return status;
-}
- // returns the priority status of the message
ACE_END_VERSIONED_NAMESPACE_DECL