summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp')
-rw-r--r--TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp70
1 files changed, 0 insertions, 70 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp
deleted file mode 100644
index 67fc63f8f52..00000000000
--- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-// $Id$
-
-#include "ace/Synch.h"
-#include "Cubit_Client.h"
-#include "Cubit_Server.h"
-
-ACE_RCSID(IDL_Cubit, collocation_test, "$Id$")
-
-#define ACE_THREAD_MANAGER ACE_Thread_Manager::instance ()
-
-void *
-svr_worker (void *arg)
-{
- Cubit_Server cubit_server;
- ACE_Barrier *barrier = (ACE_Barrier *) arg;
- char *fake[] = {"server"};
-
- TAO_TRY
- {
- if (cubit_server.init (1, fake, TAO_TRY_ENV) == -1)
- return (void *) 1;
- else
- {
- barrier->wait ();
- cubit_server.run (TAO_TRY_ENV);
- }
- TAO_CHECK_ENV;
- }
- TAO_CATCH (CORBA::SystemException, sysex)
- {
- ACE_UNUSED_ARG (sysex);
- TAO_TRY_ENV.print_exception ("System Exception");
- return (void *) 1;
- }
- TAO_CATCH (CORBA::UserException, userex)
- {
- ACE_UNUSED_ARG (userex);
- TAO_TRY_ENV.print_exception ("User Exception");
- return (void *) 1;
- }
- TAO_ENDTRY;
- return 0;
-}
-
-
-int
-main (int argc, char **argv)
-{
- Cubit_Client cubit_client;
- CORBA::Environment env;
- ACE_Barrier barrier (2);
-
- int retv = 1;
-
- ACE_DEBUG ((LM_DEBUG,
- "\n \t IDL_Cubit: Collocation test \n\n"));
-
- ACE_THREAD_MANAGER->spawn (ACE_reinterpret_cast (ACE_THR_FUNC, &svr_worker),
- &barrier);
- barrier.wait ();
- ACE_OS::sleep (1);
-
- if (cubit_client.init (argc, argv) == -1)
- return 1;
- else
- retv = cubit_client.run (1);
-
- ACE_THREAD_MANAGER->wait ();
- return retv;
-}