diff options
Diffstat (limited to 'TAO/tests/MT_BiDir/Server_Task.h')
-rw-r--r-- | TAO/tests/MT_BiDir/Server_Task.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/TAO/tests/MT_BiDir/Server_Task.h b/TAO/tests/MT_BiDir/Server_Task.h new file mode 100644 index 00000000000..42686741b21 --- /dev/null +++ b/TAO/tests/MT_BiDir/Server_Task.h @@ -0,0 +1,54 @@ +// -*- C++ -*- +// +// $Id$ + +#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 */ |