6 void Dispatcher_Attributes::sched_policy(int policy)
8 sched_policy_ = policy;
12 void Dispatcher_Attributes::sched_scope(int scope)
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)
39 Dispatch_Command::Dispatch_Command (int dont_delete,
40 ACE_Allocator *allocator)
41 :dont_delete_ (dont_delete),
42 allocator_ (allocator)
47 int Dispatch_Command::can_be_deleted () const
53 void Dispatch_Command::destroy ()
57 allocator_->free (this);
66 ConfigInfo::ConfigInfo ()
67 :preemption_priority_ (0),
69 dispatching_type_ (FIFO_DISPATCHING),
76 //to satisfy ACE_Array<ConfigInfo>
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_);