Skip to content

Conversation

@NoyZuberi
Copy link
Contributor

No description provided.

@NoyZuberi NoyZuberi force-pushed the bugfix/fix-rcl-period-arguments branch from 5fde311 to 63df4e5 Compare March 23, 2022 14:12
@fujitatomoya
Copy link
Collaborator

address #971

@NoyZuberi NoyZuberi force-pushed the bugfix/fix-rcl-period-arguments branch 3 times, most recently from 317c564 to 7b4a4a0 Compare March 23, 2022 17:42
@NoyZuberi NoyZuberi force-pushed the bugfix/fix-rcl-period-arguments branch from 7b4a4a0 to cb0e910 Compare March 23, 2022 17:47
Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NoyZuberi appreciate for your contribution. but we try to fix bugs against master branch and then we can backport the fix for each distribution. would you create PR against master branch? thanks!

atomic_uintptr_t callback;
// This is a duration in nanoseconds.
atomic_uint_least64_t period;
atomic_int_least64_t period;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are addressing #967 on this PR too, but probably it would be nice to open different PR for this. and i think #967 (comment) makes more sense to me.

Comment on lines +236 to +239
if (timer->impl == NULL) {
RCL_SET_ERROR_MSG("timer is invalid");
return RCL_RET_INVALID_ARGUMENT;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about the following? so are other places.

Suggested change
if (timer->impl == NULL) {
RCL_SET_ERROR_MSG("timer is invalid");
return RCL_RET_INVALID_ARGUMENT;
}
RCL_CHECK_ARGUMENT_FOR_NULL(timer->impl, RCL_RET_INVALID_ARGUMENT);

@fujitatomoya
Copy link
Collaborator

I will go ahead to close this in favor of #973

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants