diff options
Diffstat (limited to 'docs/tutorials/019/shmem.cpp')
-rw-r--r-- | docs/tutorials/019/shmem.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/docs/tutorials/019/shmem.cpp b/docs/tutorials/019/shmem.cpp deleted file mode 100644 index ff8467c90fa..00000000000 --- a/docs/tutorials/019/shmem.cpp +++ /dev/null @@ -1,47 +0,0 @@ - -// $Id$ - -#include "shmem.h" - -/* - 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 _available) -{ - available_ = _available; -} |