blob: 0207ca3ae3d958714b87aa9b7bfe99963d12719f (
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
|
/**
* @file Server_Task.h
*
* @author Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
*/
#ifndef BUG_1020_SERVER_TASK_H
#define BUG_1020_SERVER_TASK_H
#include /**/ "ace/pre.h"
#include "TestC.h"
#include "ace/Task.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class Server_Task : public ACE_Task_Base
{
public:
/// Constructor
Server_Task (Test::Echo_ptr echo,
size_t sz);
/// The thread entry point.
virtual int svc ();
private:
/// Reference to the test interface
Test::Echo_var echo_;
/// Size of data that is traded
size_t sz_;
};
#include /**/ "ace/post.h"
#endif /* BUG_1020_SERVER_TASK_H*/
|