summaryrefslogtreecommitdiff
path: root/TAO/examples/RTScheduling/Synch_i.cpp
blob: 8e89b0fc637fed988f761d58950427fbb4211424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "Synch_i.h"

Synch_i::Synch_i (void)
{
  this->synched_ = 0;
}

void
Synch_i::go (CORBA::Long base_time)
{
  ACE_DEBUG ((LM_DEBUG,
              "GO\n"));
  this->synched_ = 1;
  this->base_time_.set (static_cast<time_t>(base_time), 0);
}

int
Synch_i::synched (void)
{
  return this->synched_;
}

ACE_Time_Value*
Synch_i::base_time (void)
{
  return &this->base_time_;
}