//
// RMCast_Sequencer.cpp,v 1.3 2005/01/05 14:26:59 jwillemsen Exp
//

#include "RMCast_Sequencer.h"

#if !defined (__ACE_INLINE__)
# include "RMCast_Sequencer.i"
#endif /* ! __ACE_INLINE__ */

#include "ace/Guard_T.h"

ACE_RCSID(RMCast, RMCast_Sequencer, "RMCast_Sequencer.cpp,v 1.3 2005/01/05 14:26:59 jwillemsen Exp")

ACE_RMCast_Sequencer::~ACE_RMCast_Sequencer (void)
{
}

int
ACE_RMCast_Sequencer::data (ACE_RMCast::Data &data)
{
  {
    ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->mutex_, -1);
    data.sequence_number = this->sequence_number_generator_++;
  }
  return this->ACE_RMCast_Module::data (data);
}
