diff options
Diffstat (limited to 'TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.h')
-rw-r--r-- | TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.h b/TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.h new file mode 100644 index 00000000000..3631273c548 --- /dev/null +++ b/TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.h @@ -0,0 +1,39 @@ +// This may look like C, but it's really -*- C++ -*- + +//============================================================================= +/** + * @file OrbTask.h + * + * $Id$ + * + * @author Tim Bradley <bradley_t@ociweb.com> + */ +//============================================================================= + +#ifndef ORB_TASK_H +#define ORB_TASK_H + +#include "CSD_PT_TestInf_Export.h" +#include "ace/Task.h" +#include "tao/ORB.h" + + +class CSD_PT_TestInf_Export OrbTask : public ACE_Task_Base +{ + public: + + OrbTask(CORBA::ORB_ptr orb, unsigned num_threads = 1); + virtual ~OrbTask(); + + virtual int open(void*); + virtual int svc(); + virtual int close(u_long); + + + private: + + CORBA::ORB_var orb_; + unsigned num_threads_; +}; + +#endif |