mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix: move task to villas namespace
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
parent
297fbc511c
commit
9ba78f1fe3
2 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
|
||||||
|
namespace villas {
|
||||||
// We can choose between two periodic task implementations
|
// We can choose between two periodic task implementations
|
||||||
//#define PERIODIC_TASK_IMPL NANOSLEEP
|
//#define PERIODIC_TASK_IMPL NANOSLEEP
|
||||||
#define TIMERFD 1
|
#define TIMERFD 1
|
||||||
|
@ -70,3 +71,5 @@ struct Task {
|
||||||
// Note: currently not supported on all platforms.
|
// Note: currently not supported on all platforms.
|
||||||
int getFD() const;
|
int getFD() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace villas
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
#include <villas/task.hpp>
|
#include <villas/task.hpp>
|
||||||
#include <villas/timing.hpp>
|
#include <villas/timing.hpp>
|
||||||
|
|
||||||
|
using namespace villas;
|
||||||
|
|
||||||
// cppcheck-suppress unknownMacro
|
// cppcheck-suppress unknownMacro
|
||||||
TestSuite(task, .description = "Periodic timer tasks");
|
TestSuite(task, .description = "Periodic timer tasks");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue