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

Documentation for Wait for Acknowledgements #5069

Open
fujitatomoya opened this issue Mar 4, 2025 · 1 comment
Open

Documentation for Wait for Acknowledgements #5069

fujitatomoya opened this issue Mar 4, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@fujitatomoya
Copy link
Collaborator

Overview

add the following wait_for_all_acked documentation with using examples.

Description

This operation blocks the calling thread until either all data written by the reliable DataWriter entities is acknowledged by all matched reliable DataReader entities, or else the duration specified by the max_wait parameter elapses, whichever happens first.
A return value of OK indicates that all the samples written have been acknowledged by all reliable matched data readers; a return value of TIMEOUT indicates that max_wait elapsed before all the data was acknowledged.

This is really useful for the following use cases.

  • safety-critical applications (e.g., autonomous vehicles, industrial automation, medical devices), ensuring data has been received before proceeding is crucial to avoid failures.
  • Useful in distributed systems where state synchronization is required before the next action can occur.
  • In systems where data integrity and order matter, waiting for an acknowledgment ensures that messages are not lost due to network issues.
@fujitatomoya
Copy link
Collaborator Author

@christophebedard @kscottz @mjcarroll what do you think? if you guys feel this is good to go, i can take this.

@fujitatomoya fujitatomoya self-assigned this Mar 4, 2025
@fujitatomoya fujitatomoya added the enhancement New feature or request label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant