summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/performance-tests/RTEvent/lib/RT_Class.h
blob: d4dd088836278e6d41697b67ed65537034bbcd2d (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
/**
 * @file RT_Class.h
 *
 * $Id$
 *
 * @author Carlos O'Ryan <coryan@uci.edu>
 */

#ifndef TAO_PERF_RTEC_RT_CLASS_H
#define TAO_PERF_RTEC_RT_CLASS_H

#include "rtec_perf_export.h"
#include "ace/Sched_Params.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

/**
 * @class RT_Class
 *
 * @brief Simplify the initialization of performance tests.
 *
 */
class TAO_RTEC_Perf_Export RT_Class
{
public:
  /// Constructor
  RT_Class (void);

  /** @name Return the test scheduling parameters
   */
  //@{
  /// Return the process scheduling class selected for the test
  int prc_sched_class (void) const;

  /// Return the thread scheduling class selected for the test
  int thr_sched_class (void) const;

  /// Return the process priority selected for the test
  int priority_process (void) const;

  /// Return the (thread, native) priority for the high priority
  /// task(s) in the test
  int priority_high (void) const;

  /// Return the (thread, native) priority for the low priority
  /// task(s) in the test
  int priority_low (void) const;

  //@}

private:
  /// The process scheduling class
  int prc_sched_class_;

  /// The thread scheduling class
  int thr_sched_class_;

  /// The process priority
  int priority_process_;

  /// The high priority task(s) priority
  int priority_high_;

  /// The low priority task(s) priority
  int priority_low_;
};

#if defined(__ACE_INLINE__)
#include "RT_Class.inl"
#endif /* __ACE_INLINE__ */

#endif /* TAO_PERF_RTEC_RT_CLASS_H */