
// mmap.cpp,v 1.1 1998/12/28 23:00:58 jcej Exp

#include "mmap.h"

SharedData::SharedData(int _initialize)
    : available_(0)
{
    if( _initialize )
    {
        ACE_OS::sprintf(buf_,"UNSET\n");
    }
}

void SharedData::set(void)
{
    ACE_OS::sprintf(buf_,"My PID is (%d)\n",ACE_OS::getpid());
}

void SharedData::show(void)
{
    ACE_DEBUG ((LM_INFO, "(%P|%t) Shared Data text is (%s)\n",
                buf_ ));
}

int SharedData::available(void)
{
    return available_;
}

void SharedData::available(int _available)
{
    available_ = _available;
}
