Suuports clang compiler
[anna.git] / source / timex / internal / TickProducer.cpp
index bb37833..8744260 100644 (file)
@@ -2,7 +2,7 @@
 //
 // (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)