예제 #1
0
  static void CountAndDisarmNotifyFunction(sigval_t value) {
    Counter* cd = reinterpret_cast<Counter*>(value.sival_ptr);
    ++cd->value;

    // Setting the initial expiration time to 0 disarms the timer.
    cd->SetTime(0, 0, 1, 0);
  }
예제 #2
0
	void TimeTransaction::Update(Counter aMeas, size_t aIndex)
	{
		aMeas.SetTime(mTimestamp);
		mpObserver->Update(aMeas, aIndex);
	}