Skip to content
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

service implementation might dead-locked #54

Open
tsingakbar opened this issue Sep 27, 2022 · 0 comments
Open

service implementation might dead-locked #54

tsingakbar opened this issue Sep 27, 2022 · 0 comments

Comments

@tsingakbar
Copy link

Before executing req.WaitForResponse(), it's possible that this request has been TakeRequested and SendResponseed in ros executor thread, and the condition variable waiting in req.WaitForResponse() totally missing the notify and blocked forever.

To increase the possiblity of reproducing this problem, add something like std::this_thread::sleep_for(std::chrono::milliseconds(5)); before req.WaitForResponse().

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

No branches or pull requests

1 participant