1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix comments in memory, ethercat and rtp

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-08-09 09:58:34 +02:00 committed by Steffen Vogel
parent 26cfc48a02
commit 9cb7a40cf9
3 changed files with 8 additions and 8 deletions

View file

@ -97,12 +97,12 @@ int villas::node::memory::lock(size_t sz) {
mallopt(M_TRIM_THRESHOLD, -1);
#ifdef _POSIX_MEMLOCK
/* Lock all current and future memory allocations */
// Lock all current and future memory allocations
ret = mlockall(MCL_CURRENT | MCL_FUTURE);
if (ret)
return -1;
#endif /* _POSIX_MEMLOCK */
#endif /* __linux__ */
#endif // _POSIX_MEMLOCK
#endif // __linux__
return 0;
}

View file

@ -372,10 +372,10 @@ int villas::node::ethercat_init(NodeCompat *n) {
w->domain_pd = nullptr;
w->domain_regs = nullptr;
/* Placement new for C++ objects */
new (&w->send) std::atomic<struct Sample *>();
new (&w->thread) std::thread();
new (&w->task) Task();
// Placement new for C++ objects
new (&w->send) std::atomic<struct Sample *>();
new (&w->thread) std::thread();
new (&w->task) Task();
return 0;
}

View file

@ -470,7 +470,7 @@ int villas::node::rtp_type_start(villas::node::SuperNode *sn) {
int villas::node::rtp_type_stop() {
int ret;
/* Join worker thread */
// Join worker thread
ret = pthread_kill(re_pthread, SIGUSR1);
if (ret)
throw RuntimeError("Failed to kill thread");