blob: 8cd1a61a9726eea9edd764f2fe3c4ea785204d62 (
plain)
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
|
// $Id$
namespace Kokyu
{
ACE_INLINE
Dispatch_Command::Dispatch_Command (int dont_delete)
:dont_delete_ (dont_delete)
{
}
ACE_INLINE
int Dispatch_Command::can_be_deleted (void) const
{
return !dont_delete_;
}
ACE_INLINE
void Dispatch_Command::destroy (void)
{
//@@what if it was allocated thru an allocator?
//may be this should be left as a pure virtual
delete this;
}
}
//to satisfy ACE_Array<ConfigInfo>
ACE_INLINE
int 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_ );
}
|