diff options
Diffstat (limited to 'TAO/tests/Bug_1020_Basic_Regression/Server_Task.h')
-rw-r--r-- | TAO/tests/Bug_1020_Basic_Regression/Server_Task.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/TAO/tests/Bug_1020_Basic_Regression/Server_Task.h b/TAO/tests/Bug_1020_Basic_Regression/Server_Task.h new file mode 100644 index 00000000000..4c19bc6b94a --- /dev/null +++ b/TAO/tests/Bug_1020_Basic_Regression/Server_Task.h @@ -0,0 +1,40 @@ +/** + * @file Server_Task.h + * + * $Id$ + * + * @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 (void); + +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*/ |