/usr/include/Kokyu/Kokyu_defs.inl is in libkokyu-dev 6.4.5+dfsg-1build2.
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 76 77 78 79 80 81 82 83 | namespace Kokyu
{
ACE_INLINE
void Dispatcher_Attributes::sched_policy(int policy)
{
sched_policy_ = policy;
}
ACE_INLINE
void Dispatcher_Attributes::sched_scope(int scope)
{
sched_scope_ = scope;
}
ACE_INLINE
Reordering_Queue_Attributes::Reordering_Queue_Attributes ()
:static_bit_field_mask_ (0), // not used
static_bit_field_shift_ (0), // not used
dynamic_priority_max_ (0x7FFFFFFFUL), // 2^31-1
dynamic_priority_offset_ (0x08000000UL) // 15/16th of dynamic prio range
{
//bits for static priority = 0
//max dynamic prio = 2^31 - 1
//pending offset = 15/16th of the dynamic prio range
//which means that the LATE population will be in the
//1/16th part of the range.
//For the Laxity and Deadline strategies these are the
//defaults defined in Message_Block.h
//static_bit_field_mask (0x3FFUL), // 2^(10) - 1
//static_bit_field_shift (10), // 10 low order bits
//dynamic_priority_max (0x3FFFFFUL), // 2^(22)-1
//dynamic_priority_offset (0x200000UL) // 2^(22-1)
}
ACE_INLINE
Dispatch_Command::Dispatch_Command (int dont_delete,
ACE_Allocator *allocator)
:dont_delete_ (dont_delete),
allocator_ (allocator)
{
}
ACE_INLINE
int Dispatch_Command::can_be_deleted (void) const
{
return !dont_delete_;
}
ACE_INLINE
void Dispatch_Command::destroy (void)
{
if (allocator_)
{
allocator_->free (this);
}
else
{
delete this;
}
}
ACE_INLINE
ConfigInfo::ConfigInfo ()
:preemption_priority_ (0),
thread_priority_ (0),
dispatching_type_ (FIFO_DISPATCHING),
allocator_ (0)
{
}
}
//to satisfy ACE_Array<ConfigInfo>
ACE_INLINE
bool operator != (const Kokyu::ConfigInfo& lhs,
const Kokyu::ConfigInfo& rhs)
{
return (lhs.preemption_priority_ != rhs.preemption_priority_ ||
lhs.thread_priority_ != rhs.thread_priority_ ||
lhs.dispatching_type_ != rhs.dispatching_type_ );
}
|