X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Ftimex%2Finternal%2FTickProducer.cpp;h=87442601aa432529ea1063169be191f2e724012f;hb=5256cb543a9d35b610df19bd227cde977186aef0;hp=24b26bd8bd5ca2d10b9db88ecd66ca87c242f995;hpb=4e12ac57e93c052f716a6305ad8fc099c45899d1;p=anna.git diff --git a/source/timex/internal/TickProducer.cpp b/source/timex/internal/TickProducer.cpp index 24b26bd..8744260 100644 --- a/source/timex/internal/TickProducer.cpp +++ b/source/timex/internal/TickProducer.cpp @@ -1,8 +1,8 @@ -// 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 @@ -14,7 +14,7 @@ // 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. // @@ -52,7 +52,7 @@ using namespace std; using namespace anna; //static -void* timex::TickProducer::exec(void* arg) +void* anna::timex::TickProducer::exec(void* arg) throw() { sigset_t mask; sigemptyset(&mask); @@ -77,7 +77,7 @@ throw() { 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), @@ -85,7 +85,7 @@ timex::TickProducer::TickProducer(timex::Engine* timeController, const int fdWri a_requestedStop(false) {;} -void timex::TickProducer::tick() +void anna::timex::TickProducer::tick() throw() { static char onebyte = 0xff; static int errorCount = 0; @@ -112,7 +112,7 @@ throw() { // (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)