/usr/include/ace/Dynamic_Message_Strategy.inl is in libace-dev 6.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | // -*- C++ -*-
//
// $Id: Dynamic_Message_Strategy.inl 80826 2008-03-04 14:51:23Z wotte $
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE unsigned long
ACE_Dynamic_Message_Strategy::static_bit_field_mask (void) const
{
return static_bit_field_mask_;
}
// get static bit field mask
ACE_INLINE void
ACE_Dynamic_Message_Strategy::static_bit_field_mask (unsigned long ul)
{
static_bit_field_mask_ = ul;
}
// set static bit field mask
ACE_INLINE unsigned long
ACE_Dynamic_Message_Strategy::static_bit_field_shift (void) const
{
return static_bit_field_shift_;
}
// get left shift value to make room for static bit field
ACE_INLINE void
ACE_Dynamic_Message_Strategy::static_bit_field_shift (unsigned long ul)
{
static_bit_field_shift_ = ul;
}
// set left shift value to make room for static bit field
ACE_INLINE unsigned long
ACE_Dynamic_Message_Strategy::dynamic_priority_max (void) const
{
return dynamic_priority_max_;
}
// get maximum supported priority value
ACE_INLINE void
ACE_Dynamic_Message_Strategy::dynamic_priority_max (unsigned long ul)
{
// pending_shift_ depends on dynamic_priority_max_: for performance
// reasons, the value in pending_shift_ is (re)calculated only when
// dynamic_priority_max_ is initialized or changes, and is stored
// as a class member rather than being a derived value.
dynamic_priority_max_ = ul;
pending_shift_ = ACE_Time_Value (0, ul);
}
// set maximum supported priority value
ACE_INLINE unsigned long
ACE_Dynamic_Message_Strategy::dynamic_priority_offset (void) const
{
return dynamic_priority_offset_;
}
// get offset for boundary between signed range and unsigned range
ACE_INLINE void
ACE_Dynamic_Message_Strategy::dynamic_priority_offset (unsigned long ul)
{
// max_late_ and min_pending_ depend on dynamic_priority_offset_:
// for performance reasons, the values in max_late_ and min_pending_
// are (re)calculated only when dynamic_priority_offset_ is
// initialized or changes, and are stored as a class member rather
// than being derived each time one of their values is needed.
dynamic_priority_offset_ = ul;
max_late_ = ACE_Time_Value (0, ul - 1);
min_pending_ = ACE_Time_Value (0, ul);
}
// set offset for boundary between signed range and unsigned range
ACE_END_VERSIONED_NAMESPACE_DECL
|