summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Cubit/Orbix/tpool/server.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-16 00:30:16 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-16 00:30:16 +0000
commiteb149e5ee8c5ab50b523718cd1d64b0bd362eb8d (patch)
tree1212211db11a5219bd6b8b939280f9cfed404fb5 /TAO/performance-tests/Cubit/Orbix/tpool/server.cpp
parent063d1234fff71d1a0642c01d2e51ce8feff6dd0e (diff)
downloadATCD-eb149e5ee8c5ab50b523718cd1d64b0bd362eb8d.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/performance-tests/Cubit/Orbix/tpool/server.cpp')
-rw-r--r--TAO/performance-tests/Cubit/Orbix/tpool/server.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/TAO/performance-tests/Cubit/Orbix/tpool/server.cpp b/TAO/performance-tests/Cubit/Orbix/tpool/server.cpp
new file mode 100644
index 00000000000..fd486ba5d6f
--- /dev/null
+++ b/TAO/performance-tests/Cubit/Orbix/tpool/server.cpp
@@ -0,0 +1,50 @@
+// $Id$
+
+//**************************************************************************
+//
+// NAME : tpr_server.cpp
+// DESCRIPTION:
+//
+// Server mainline
+//
+//****************************************************************************
+#define IT_EX_MACROS
+
+#include "cubit_impl.h" // server header file
+#include "tpool.h"
+
+ACE_RCSID(tpool, server, "$Id$")
+
+int
+main (int argc, char** argv)
+{
+
+
+#ifdef Cubit_USE_BOA
+ Cubit_var cb = new Cubit_Impl;
+ cout << "Using BOA approach" << endl;
+#else
+ Cubit_var cb = new TIE_Cubit (Cubit_Impl) (new Cubit_Impl);
+ cout << "Using TIE approach" << endl;
+#endif /* Cubit_USE_BOA */
+
+ // Register our thread-pool dispatcher
+ int n_threads = argc > 1 ? ACE_OS::atoi (argv[1]) : ACE_DEFAULT_THREADS;
+ Thread_Pool tpool_dispatcher (n_threads);
+
+ //
+ // Go get some work to do....
+ //
+ IT_TRY {
+ CORBA::Orbix.impl_is_ready("Cubit", IT_X);
+ }
+ IT_CATCHANY {
+ cout << IT_X << endl;
+ }
+ IT_ENDTRY;
+
+ cout << "Cubit server is exiting." << endl;
+
+
+ return 0;
+}