Repository navigation
Store handle of rmw_waitset_t in Executor - #166
Conversation
There was a problem hiding this comment.
Can this function fail (return nullptr)? Should its value be checked in the constructor?
There was a problem hiding this comment.
rmw_create_guard_condition can also return nullptr.
I will change the constructor to check both values and throw an exception if it either is null.
|
I just committed a simpler condition - same as a few lines above. |
|
I know it's not in review yet, but the changes so far lgtm now. |
|
with regards to exposing the Alternatively I could make the max_conditions variable an argument to MemoryStrategy and read it out of the MemoryStrategy when constructing the rmw_waitset, which makes more sense conceptually (max_conditions specifies a limit on allocation) but is more indirect in the implementation. |
|
On synchronization: I made a test case for these changes in branch There are a few possible ways of fixing this:
|
|
I tried implementing approach 3 as described above to synchronizing access to the shared guard condition and it fixes the segfault in the multiple executors test case. I still haven't done anything to synchronize Executor construction/destruction. |
af90d26 to
f3ed253
Compare
9aabd0f to
1c6fbbb
Compare
1c6fbbb to
e79b9ed
Compare
e79b9ed to
4831788
Compare
ff65b43 to
4b0ad21
Compare
Store handle of rmw_waitset_t in Executor
* started implementing the publisher test * Working on tests for services * Add basic subscription test * Add check for nullptr as service impl. * Add client test * Undid accidental removal of null topic test * Made subscription test consistent with the others * Addressed comments from @mikaelarguedas, as well as made things more uniform. * Replace EXPECT_EQ(-, false) with EXPECT_FALSE(-) (and analogous), as well as fixed typo in comment. * Added check for init's return value. * Added RCL_PUBLIC to export dll targets. * nit: homogenize docs
Connects to ros2/rmw#49
TODO:
max_conditionsargument to the user-facing API in a graceful way.