blob: 2b01be5f76ecb08444a280b05990c80acbed3191 (
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
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
|
//$Id$
/**
* @file MUF_Scheduling.pidl
*
* $Id$
*
* @brief Pre-compiled IDL source to help with the service context
* propagation of dynamic scheduling parameters using Kokyu
*
* This file was used to generate the code in MUF_SchedulingC.{h,i,cpp}.
* The steps to regenerate the code are as follows:
*
* 1. Run the tao_idl compiler on the pidl file. The command used for
* this is:
*
* tao_idl -I $TAO_ROOT -Ge 1
* -Wb,export_macro=Kokyu_DSRT_Schedulers_Export
* -Wb,export_include=Kokyu_dsrt_schedulers_export.h
*
*
* 2. Then apply the patches in MUF_SchedulingC.h.diff to the generated code.
* The patch will replace the inclusion of RTCORBAC.h and RTSchedulerC.h
* with RTCORBA.h and RTScheduler.h respectively.
*
* Apply patches using the following command:
*
* patch < MUF_SchedulingC.h.diff
*
* Note: The diff was generated in the following way:
*
* Run the idl compiler as in step 1.
* cp MUF_SchedulingC.h MUF_SchedulingC.h.orig
* Modify MUF_SchedulingC.h with changes described in step 2.
* diff -wBbu MUF_SchedulingC.h.orig MUF_SchedulingC.h > MUF_SchedulingC.h.diff
*
*/
#include <tao/RTScheduling/RTScheduler.pidl>
#include <tao/RTCORBA/RTCORBA.pidl>
module MUF_Scheduling
{
struct SchedulingParameter
{
TimeBase::TimeT deadline;
TimeBase::TimeT estimated_initial_execution_time;
long criticality;
};
local interface SchedulingParameterPolicy
: CORBA::Policy
{
attribute SchedulingParameter value;
};
local interface Scheduler : RTScheduling::Scheduler
{
SchedulingParameterPolicy
create_scheduling_parameter
(in SchedulingParameter value);
};
};
|