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

#ifndef TAO_PERF_RTEC_SEND_TASK_STOPPER_H
#define TAO_PERF_RTEC_SEND_TASK_STOPPER_H

#include "Send_Task.h"
#include "Task_Activator.h"

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

/**
 * @class Send_Task_Stopper
 *
 * @brief Implement a helper class to activate and stop Send_Tasks.
 *
 */
class TAO_RTEC_Perf_Export Send_Task_Stopper : public Task_Activator<Send_Task>
{
public:
  /// Constructor
  Send_Task_Stopper (int priority,
                     int scheduling_class,
                     Send_Task *task);

  /// Destructor, stop the task and wait for it
  ~Send_Task_Stopper (void);
};

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

#endif /* TAO_PERF_RTEC_SEND_TASK_STOPPER_H */