summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarvindk <arvindk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-08-06 23:40:21 +0000
committerarvindk <arvindk@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-08-06 23:40:21 +0000
commit877562c97b56cd6b8204e63e3745794ca6457cef (patch)
tree7e1a05b1b9353c777ae03b4a1f2f60da52ebbc84
parent6236bb630edb7d7fdc1691894e32797092c10144 (diff)
downloadATCD-877562c97b56cd6b8204e63e3745794ca6457cef.tar.gz
ChangeLogTag: Wed Aug 6 18:39:32 CDT 2003 Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
-rw-r--r--TAO/performance-tests/Latency/Collocation/Server_Task.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/TAO/performance-tests/Latency/Collocation/Server_Task.h b/TAO/performance-tests/Latency/Collocation/Server_Task.h
new file mode 100644
index 00000000000..659a50a083d
--- /dev/null
+++ b/TAO/performance-tests/Latency/Collocation/Server_Task.h
@@ -0,0 +1,41 @@
+//
+// $Id$
+//
+
+#ifndef COLLOCATED_SERVER_TASK_H
+#define COLLOCATED_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"
+
+/// Implement a Task to run the server in a single thread
+class Server_Task : public ACE_Task_Base
+{
+public:
+ /// Constructor
+ Server_Task (char* ior_file,
+ CORBA::ORB_ptr sorb,
+ ACE_Null_Condition &cond,
+ ACE_Thread_Manager *thr_mgr);
+
+ /// Thread entry point
+ int svc (void);
+
+private:
+
+ const char* ior_file;
+ /// Manual event to wake up the main thread to create a client
+ /// thread.
+ ACE_Null_Condition &cond_;
+
+ CORBA::ORB_var sorb_;
+};
+
+#include /**/ "ace/post.h"
+#endif /* COLLOCATED_SERVER_TASK_H */