
// mmap.cpp,v 1.2 2000/11/27 17:56:44 othman Exp

#include "mmap.h"

#include "ace/Log_Msg.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;
}
