-
Notifications
You must be signed in to change notification settings - Fork 404
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-#14 replace ChunkInfo with ChunkHeader members #438
iox-#14 replace ChunkInfo with ChunkHeader members #438
Conversation
Signed-off-by: Mathias Kraus <[email protected]>
using BaseClock_t = std::chrono::steady_clock; | ||
|
||
// use signed integer for duration; | ||
// there is a bug in gcc 4.8 which leads to a wrong calcutated time | ||
// when sleep_until() is used with a timepoint in the past | ||
using DurationNs_t = std::chrono::duration<std::int64_t, std::nano>; | ||
using TimePointNs_t = std::chrono::time_point<BaseClock_t, DurationNs_t>; |
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.
these could probably also fit into the plain iox
namespace. It's a bit weird to have a DurationNs_t
which is not based on cxx::Duration
though
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.
We should remove them completely and should always use units::duration
.
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.
so, no chrono based timepoints?
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.
Is the issue in cxx::Duration with the rounding error resolved? For example when you use 1 ns then its represented as zero in the duration.
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.
Not, it's still using a double
. @elfenpiff will receive the honour I suppose :P
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
iceoryx_posh/include/iceoryx_posh/internal/popo/building_blocks/chunk_sender.inl
Show resolved
Hide resolved
iceoryx_posh/include/iceoryx_posh/internal/popo/building_blocks/chunk_sender.inl
Outdated
Show resolved
Hide resolved
iceoryx_posh/include/iceoryx_posh/internal/roudi/introspection/port_introspection.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Mathias Kraus <[email protected]>
Signed-off-by: Mathias Kraus <[email protected]>
2469ae8
to
2ba9ecc
Compare
Signed-off-by: Mathias Kraus <[email protected]>
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.
Please try to avoid using chrono
directly. The advantage of using cxx::Duration
is that we have conversion operators to the commonly used timeval
and timespec
. I suppose the best idea is to use chrono
inside cxx::Duration
Signed-off-by: Mathias Kraus <[email protected]>
@mossmaurice the usage of |
Fine by me. @budrus What about tackling this topic in v1.x? Or is |
Signed-off-by: Mathias Kraus <[email protected]>
@mossmaurice chrono is not user facing. I'm not sure about |
Does it makes sense to address this together with #337? |
yes, I added it there |
Signed-off-by: Dietrich Krönke <[email protected]>
Signed-off-by: Dietrich Krönke <[email protected]>
Signed-off-by: Dietrich Krönke <[email protected]>
…e in Github CI Signed-off-by: Dietrich Krönke <[email protected]>
Signed-off-by: Dietrich Krönke <[email protected]>
Signed-off-by: Dietrich Krönke <[email protected]>
Signed-off-by: Dietrich Krönke <[email protected]>
Signed-off-by: Mathias Kraus [email protected]
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 replaces
ChunkInfo
with members fromChunkHeader
and moves some types toiceoryx_posh_types.hpp
Checklist for the PR Reviewer
Post-review Checklist for the PR Author
Post-review Checklist for the Eclipse Committer
References