summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Sched/DynSched.i
blob: 0ff202db2c0cf761e3ce403fa94f5e08ec0f9488 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// $Id$
//
// ============================================================================
//
// = LIBRARY
//    sched
//
// = FILENAME
//    DynSched.i
//
// = CREATION DATE
//    23 January 1997
//
// = AUTHOR
//    Chris Gill
//
// ============================================================================



/////////////////////////
// Class ACE_Scheduler //
/////////////////////////

ACE_INLINE ACE_Scheduler::Preemption_Priority
ACE_Scheduler::minimum_priority_queue () const 
{ 
  return minimum_priority_queue_;
}
  // This is intended for use by the Event Channel, so it can determine the
  // number of priority dispatch queues to create.

// = Access the number of tasks.
ACE_INLINE u_int 
ACE_Scheduler::tasks () const 
{
  return tasks_; 
}

  // = Access the number of threads.
ACE_INLINE u_int
ACE_Scheduler::threads () const 
{
  return threads_; 
}

  // = Access the current scheduler status.
ACE_INLINE ACE_Scheduler::status_t 
ACE_Scheduler::status () const 
{  
  return status_; 
}

  // = Access the current output (debugging) level.
ACE_INLINE u_int
ACE_Scheduler::output_level () const {
  return output_level_; 
}
  // Default is 0; set to 1 to print out schedule, by task.  Set
  // to higher than one for debugging info.

  // = Set the scheduler output (debugging) level.
ACE_INLINE void 
ACE_Scheduler::output_level (const u_int level) 
{
  output_level_ = level; 
}
  // the only supported levels are 0 (quiet), 1 (verbose) and 2
  // (debug)

ACE_INLINE void 
ACE_Scheduler::minimum_priority_queue (const Preemption_Priority minimum_priority_queue_number)
{
  minimum_priority_queue_ = minimum_priority_queue_number; 
}

  // = Set the number of tasks.
ACE_INLINE void 
ACE_Scheduler::tasks (const u_int tasks) 
{
  tasks_ = tasks; 
}

  // = Set the number of threads.
// TBD - remove this - allowing the application to modify this is *not* good
ACE_INLINE void 
ACE_Scheduler::threads (const u_int threads) 
{
  threads_ = threads; 
}

  // = Set the current scheduler status.
ACE_INLINE void 
ACE_Scheduler::status (const status_t new_status) 
{ 
  status_ = new_status; 
}


// EOF