summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/lib/Scheduler_Utilities.h
blob: 2475751020a36ad82cb4b3542b172f222a836643 (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
// ============================================================================
//
// $Id$
//
// ============================================================================

#ifndef ACE_SCHEDULER_UTILITIES_H
#define ACE_SCHEDULER_UTILITIES_H

#include <ace/OS.h>

#include "RtecSchedulerC.h"

class ACE_RT_Info : public RtecScheduler::RT_Info
  // = TITLE
  //   Offers a convenient C++ interface to the IDL RT_Info structure.
  //
  // = DESCRIPTION
  //   For performance reasons the RT_Info data is represented as an
  //   IDL structure, this permits sending complete RT_Info's from the
  //   client to the server.
  //   Unfortunately this precludes the usage of member functions and
  //   constructors, this class serves as a helper to implement those
  //   without loosing the performance on IDL.
{
public:
  ACE_RT_Info (const char* entry_point,
	       RtecScheduler::Time worst_time,
	       RtecScheduler::Time typical_time,
	       RtecScheduler::Time cached_time,
	       RtecScheduler::Period period,
	       RtecScheduler::Importance importance,
	       RtecScheduler::Quantum quantum,
	       CORBA::Long threads);

  ACE_RT_Info (const RtecScheduler::RT_Info& rt_info);

  int add_dependency(RtecScheduler::handle_t dep,
		     int number_of_calls = 1);
};

#if defined (__ACE_INLINE__)
#include "Scheduler_Utilities.i"
#endif /* __ACE_INLINE__ */

#endif /* ACE_SCHEDULER_UTILITIES_H */