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:
parent
26cfc48a02
commit
9cb7a40cf9
3 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue