summaryrefslogtreecommitdiff
path: root/docs/tutorials/019/shmem.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-12-25 21:27:55 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-12-25 21:27:55 +0000
commit4d6f540252a217228dac1535692c61e8b24e1289 (patch)
treeab12d1c75ef5b7cb25431abe6206780dd7b18d08 /docs/tutorials/019/shmem.cpp
parent2b16235a5279ea3971abcd8ee60c0cda4716a1b4 (diff)
downloadATCD-TAO-1_2_8.tar.gz
This commit was manufactured by cvs2svn to create tag 'TAO-1_2_8'.TAO-1_2_8
Diffstat (limited to 'docs/tutorials/019/shmem.cpp')
-rw-r--r--docs/tutorials/019/shmem.cpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/docs/tutorials/019/shmem.cpp b/docs/tutorials/019/shmem.cpp
deleted file mode 100644
index 2f05aa01160..00000000000
--- a/docs/tutorials/019/shmem.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-// $Id$
-
-#include "shmem.h"
-
-#include "ace/Log_Msg.h"
-
-#if ! defined (ACE_LACKS_SYSV_SHMEM)
-
-/*
- Set the available_ flag to zero & optionally initialize the buf_
- area.
-*/
-
-SharedData::SharedData (int initialize)
- : available_ (0)
-{
- if (initialize)
- ACE_OS::sprintf (buf_, "UNSET\n");
-}
-
-/*
- Write the process ID into the buffer. This will prove to us that
- the data really is shared between the client and server.
-*/
-void SharedData::set (void)
-{
- ACE_OS::sprintf (buf_,
- "My PID is (%d)\n",
- ACE_OS::getpid ());
-}
-
-/*
- Display the buffer to the user
-*/
-void SharedData::show(void)
-{
- ACE_DEBUG ((LM_INFO,
- "(%P|%t) Shared Data text is (%s)\n",
- buf_));
-}
-
-// Show flag
-int SharedData::available(void)
-{
- return available_;
-}
-
-// Set flag
-void SharedData::available(int a)
-{
- available_ = a;
-}
-
-#endif /* ACE_LACKS_SYSV_SHMEM */