summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vs.cpp')
-rw-r--r--TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vs.cpp66
1 files changed, 0 insertions, 66 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vs.cpp b/TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vs.cpp
deleted file mode 100644
index e0d7ae6242f..00000000000
--- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/server/vs.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-// $Id$
-
-#include "mpeg_server/Video_Server.h"
-
-int
-main (int argc, char **argv)
-{
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) %s:%d\n", __FILE__, __LINE__));
- Video_Server video_server;
-
- TAO_TRY
- {
- // Parses the arguments, and initializes the server.
- if (video_server.init (argc,
- argv,
- TAO_TRY_ENV) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%P|%t) Video_Server: init failed\n"),
- -1);
-
- char sem_str [BUFSIZ];
- pid_t my_pid;
-
- if ((my_pid = ACE_OS::getpid ()) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%P|%t) Unable to get my pid!\n"),
- -1);
-
-
- sprintf (sem_str,
- "%s:%d",
- "Video_Server_Semaphore",
- my_pid);
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) semaphore is %s\n",
- sem_str));
- // Release the lock on which the server is waiting
- ACE_Process_Semaphore semaphore (0, // 0 means that the semaphore is
- // initially locked
- sem_str);
-
- if (semaphore.release () == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%P|%t) Error releasing semaphore %s: %p\n",
- sem_str,
- "semaphore.release ()"),
- -1);
- // ACE_DEBUG ((LM_DEBUG, "(%P|%t) %s:%d\n", __FILE__, __LINE__));
- // Increment ACE_SV_Semaphore by one. Dijkstra's V operation,
- // Tannenbaums UP operation.
-
- // %% potential race condition if the client
- // sends a request before we enter the event loop
- // Runs the reactor event loop.
- video_server.run (TAO_TRY_ENV);
- TAO_CHECK_ENV;
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("Exception");
- return -1;
- }
- TAO_ENDTRY;
-
- return 0;
-}