diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-24 01:23:45 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-24 01:23:45 +0000 |
commit | 971b5fef4c0790745d71d7493090c54af9fc3b60 (patch) | |
tree | b9031b2eb4584c797d558a208156cb50296c257e /docs/tutorials/019/shmem.cpp | |
parent | 39c67e8460275499ffcaf2ed95fe4df6cd157f28 (diff) | |
download | ATCD-pos_avsvc_split.tar.gz |
This commit was manufactured by cvs2svn to create tagpos_avsvc_split
'pos_avsvc_split'.
Diffstat (limited to 'docs/tutorials/019/shmem.cpp')
-rw-r--r-- | docs/tutorials/019/shmem.cpp | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/docs/tutorials/019/shmem.cpp b/docs/tutorials/019/shmem.cpp deleted file mode 100644 index a2442afe253..00000000000 --- a/docs/tutorials/019/shmem.cpp +++ /dev/null @@ -1,52 +0,0 @@ -// $Id$ - -#include "shmem.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 */ |