-// ANNA - Anna is Not 'N' Anymore
+// ANNA - Anna is Not Nothingness Anymore
//
// (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo
//
-// https://bitbucket.org/testillano/anna
+// http://redmine.teslayout.com/projects/anna-suite
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
-// * Neither the name of Google Inc. nor the names of its
+// * Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
using namespace anna;
//static
-void* timex::TickProducer::exec(void* arg)
+void* anna::timex::TickProducer::exec(void* arg)
throw() {
sigset_t mask;
sigemptyset(&mask);
return NULL;
}
-timex::TickProducer::TickProducer(timex::Engine* timeController, const int fdWrite) :
+anna::timex::TickProducer::TickProducer(timex::Engine* timeController, const int fdWrite) :
a_timeController(*timeController),
a_fdWrite(fdWrite),
a_expectedTime(0),
a_requestedStop(false)
{;}
-void timex::TickProducer::tick()
+void anna::timex::TickProducer::tick()
throw() {
static char onebyte = 0xff;
static int errorCount = 0;
// (3) Si la correcin aplicada es mayor del 5% de la resolucin volvemos a calcularla ya
// que podemos considerar que normalmente no desviar�tanto tiempo.
//--------------------------------------------------------------------------------------------
-Millisecond timex::TickProducer::calculeSlice(const Millisecond & msnow)
+Millisecond anna::timex::TickProducer::calculeSlice(const Millisecond & msnow)
throw() {
Millisecond result(a_timeController.getResolution());
int correction = (a_expectedTime == 0) ? 0 : (a_expectedTime - msnow); // (2)