-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iox #337 create periodic task #460
Iox #337 create periodic task #460
Conversation
iceoryx_utils/include/iceoryx_utils/internal/concurrent/periodic_task.hpp
Outdated
Show resolved
Hide resolved
iceoryx_utils/test/moduletests/test_concurrent_periodic_task.cpp
Outdated
Show resolved
Hide resolved
private: | ||
T m_callable; | ||
units::Duration m_interval; | ||
/// @todo use a refactored posix::Timer object once available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shankar-bosch FYI
{ | ||
m_callable(); | ||
|
||
/// @todo use a refactored posix::Timer::wait method returning TIMER_TICK and TIMER_STOPPED once available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shankar-bosch FYI
iceoryx_utils/test/moduletests/test_concurrent_periodic_task.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
8cc57b0
to
4694bc4
Compare
Signed-off-by: Dietrich Krönke <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Dietrich Krönke <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
6d575fe
to
bfe1e20
Compare
constexpr int ETIMEDOUT_PLUS_256 = ETIMEDOUT + 256; | ||
if (errno == ETIMEDOUT_PLUS_256) | ||
{ | ||
errno &= 0xFF; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elfenpiff do you know why this works
Signed-off-by: Dietrich Krönke <[email protected]>
Signed-off-by: Dietrich Krönke <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Dietrich Krönke <[email protected]>
…/github.com/ApexAI/iceoryx into iox-eclipse-iceoryx#337-create-PeriodicTask
Signed-off-by: Mathias Kraus <[email protected]>
1d37360
Pre-Review Checklist for the PR Author
iox-#123-this-is-a-branch
)iox-#123 commit text
)git commit -s
)Notes for Reviewer
This PR creates a
PeriodicTask
class which can be used to, well, execute periodic tasks. It also replaces the current posix::Timer to send the keep alive message. Once the periodic::Timer is refactored, it could be used as base for PeridodicTaskChecklist for the PR Reviewer
Post-review Checklist for the PR Author
Post-review Checklist for the Eclipse Committer
References