blob: 3a34b55d44cf84be72022c3131353ea926c51a84 (
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
|
// -*- C++ -*-
#ifndef MT_BIDIR_SERVER_TASK_H
#define MT_BIDIR_SERVER_TASK_H
#include /**/ "ace/pre.h"
#include "ace/Task.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/ORB.h"
class Sender_i;
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Manual_Event;
ACE_END_VERSIONED_NAMESPACE_DECL
/// Implement a Task to run the experiments using multiple threads.
class Server_Task : public ACE_Task_Base
{
public:
/// Constructor
Server_Task (Sender_i *s,
ACE_Manual_Event &event,
int no_iterations,
CORBA::ORB_ptr orb,
ACE_Thread_Manager *thr_mgr);
/// Thread entry point
int svc (void);
private:
/// The sender object
Sender_i *sender_;
/// The synchronizer
ACE_Manual_Event &event_;
/// Number of messages that needs to be sent
int no_iterations_;
/// The ORB on which we run..
CORBA::ORB_var orb_;
};
#include /**/ "ace/post.h"
#endif /* MT_BIDIR_SERVER_TASK_H */
|