summaryrefslogtreecommitdiff
path: root/trunk/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.h')
-rw-r--r--trunk/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/trunk/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.h b/trunk/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.h
new file mode 100644
index 00000000000..aec109d9ed6
--- /dev/null
+++ b/trunk/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.h
@@ -0,0 +1,44 @@
+// This may look like C, but it's really -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file ClientTask.h
+ *
+ * $Id$
+ *
+ * @author Tim Bradley <bradley_t@ociweb.com>
+ */
+//=============================================================================
+
+#ifndef CLIENT_TASK_H
+#define CLIENT_TASK_H
+
+#include "FooC.h"
+#include "CallbackC.h"
+#include "ace/Task.h"
+
+class ClientTask : public ACE_Task_Base
+{
+ public:
+
+ ClientTask(CORBA::ORB_ptr orb,
+ Foo_ptr foo,
+ Callback_ptr callback,
+ bool collocated = false);
+
+ virtual ~ClientTask();
+
+ virtual int open(void* x = 0);
+ virtual int svc();
+ virtual int close(u_long);
+
+ private:
+ bool validate_connection ();
+
+ CORBA::ORB_var orb_;
+ Foo_var foo_;
+ Callback_var callback_;
+ bool collocated_;
+};
+
+#endif