summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Notify/Lanes/ORB_Run_Task.h
blob: 5fc0f0fcd705185c1e80813ed8051fee5105de58 (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
/* -*- C++ -*- */
/**
 *  @file ORB_Run_Task.h
 *
 *  @author Pradeep Gore <pradeep@oomworks.com>
 */

#ifndef TAO_Notify_ORB_RUN_TASK_H
#define TAO_Notify_ORB_RUN_TASK_H

#include /**/ "ace/pre.h"
#include "ace/Task.h"

#include "ORB_Objects.h"

/**
 * @class TAO_Notify_ORB_Run_Task
 *
 * @brief Run the ORB::run method in a separate thread.
 */
class TAO_Notify_ORB_Run_Task : public ACE_Task_Base
{
public:
  /// Constructor
  TAO_Notify_ORB_Run_Task (TAO_Notify_ORB_Objects& orb_objects);

  /// Destructor
  ~TAO_Notify_ORB_Run_Task ();

  /// The thread entry point.
  virtual int svc ();

private:
  /// ORB Objects.
  TAO_Notify_ORB_Objects orb_objects_;
};

#include /**/ "ace/post.h"
#endif /* TAO_Notify_ORB_RUN_TASK_H */