Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / Kokyu / Kokyu_defs.inl
blobb775ae939367a24b8d11ee60e0c398a429067faa
2 namespace Kokyu
5 ACE_INLINE
6 void Dispatcher_Attributes::sched_policy(int policy)
8   sched_policy_ = policy;
11 ACE_INLINE
12 void Dispatcher_Attributes::sched_scope(int scope)
14   sched_scope_ = scope;
17 ACE_INLINE
18 Reordering_Queue_Attributes::Reordering_Queue_Attributes ()
19   :static_bit_field_mask_ (0), // not used
20    static_bit_field_shift_ (0), // not used
21    dynamic_priority_max_ (0x7FFFFFFFUL), // 2^31-1
22    dynamic_priority_offset_ (0x08000000UL) // 15/16th of dynamic prio range
24   //bits for static priority = 0
25   //max dynamic prio = 2^31 - 1
26   //pending offset = 15/16th of the dynamic prio range
27   //which means that the LATE population will be in the
28   //1/16th part of the range.
30   //For the Laxity and Deadline strategies these are the
31   //defaults defined in Message_Block.h
32   //static_bit_field_mask (0x3FFUL), // 2^(10) - 1
33   //static_bit_field_shift (10), // 10 low order bits
34   //dynamic_priority_max (0x3FFFFFUL), // 2^(22)-1
35   //dynamic_priority_offset (0x200000UL) // 2^(22-1)
38 ACE_INLINE
39 Dispatch_Command::Dispatch_Command (int dont_delete,
40         ACE_Allocator *allocator)
41         :dont_delete_ (dont_delete),
42         allocator_ (allocator)
46 ACE_INLINE
47 int Dispatch_Command::can_be_deleted () const
49   return !dont_delete_;
52 ACE_INLINE
53 void Dispatch_Command::destroy ()
55   if (allocator_)
56   {
57     allocator_->free (this);
58   }
59   else
60   {
61     delete this;
62   }
65 ACE_INLINE
66 ConfigInfo::ConfigInfo ()
67   :preemption_priority_ (0),
68    thread_priority_ (0),
69    dispatching_type_ (FIFO_DISPATCHING),
70    allocator_ (0)
76 //to satisfy ACE_Array<ConfigInfo>
77 ACE_INLINE
78 bool operator != (const Kokyu::ConfigInfo& lhs,
79                   const Kokyu::ConfigInfo& rhs)
81   return (lhs.preemption_priority_ != rhs.preemption_priority_ ||
82           lhs.thread_priority_ != rhs.thread_priority_ ||
83           lhs.dispatching_type_ != rhs.dispatching_type_);