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

Optimize read/take path with SHM when waitset is not used for the data notification #1173

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Commits on Mar 24, 2022

  1. Update shm_monitor_attach/detach_reader APIs

      - Make them thread safe
      - The attach API will attach only if the reader is not already attached
      - The attach API also updates the iox_sub storage with monitor and the parent reader
      - The detach API will only attempt to detach if there is a monitor attched
    
    Signed-off-by: Sumanth Nirmal <sumanth.724@gmail.com>
    sumanth-nirmal committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    f5946b6 View commit details
    Browse the repository at this point in the history
  2. Abstract the method to transfer samples from iox queue to reader hist…

    …ory cache from shm_monitor.c to dds_read.c
    
    Signed-off-by: Sumanth Nirmal <sumanth.724@gmail.com>
    sumanth-nirmal committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    45d96da View commit details
    Browse the repository at this point in the history
  3. Update dds_reader_lock_samples to update the samples from the iox sub…

    …scriber
    
    queue to the reader cache directly in the same thread context, if the monitor
    is not attached to this reader
    
    Signed-off-by: Sumanth Nirmal <sumanth.724@gmail.com>
    sumanth-nirmal committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    7fa881d View commit details
    Browse the repository at this point in the history
  4. Remove the logic of attaching reader to shm monitor for every reader

     The reader will be attached to the monitor when the reader has read conditions or
    status conditions or listener with data availability status mask
    
    Signed-off-by: Sumanth Nirmal <sumanth.724@gmail.com>
    sumanth-nirmal committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    1637298 View commit details
    Browse the repository at this point in the history
  5. Update waitset attach method to attach the reader to the shm monitor

    Signed-off-by: Sumanth Nirmal <sumanth.724@gmail.com>
    sumanth-nirmal committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    9d79e03 View commit details
    Browse the repository at this point in the history
  6. Update waitset detach method to detach the reader from the shm monitor

    Signed-off-by: Sumanth Nirmal <sumanth.724@gmail.com>
    sumanth-nirmal committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    6bad2ce View commit details
    Browse the repository at this point in the history
  7. Remove the logic of tracking attached iox listeners

    Signed-off-by: Sumanth Nirmal <sumanth.724@gmail.com>
    sumanth-nirmal committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    bbaab3b View commit details
    Browse the repository at this point in the history
  8. Remove the unused mutex in shm_monitor

    Signed-off-by: Sumanth Nirmal <sumanth.724@gmail.com>
    sumanth-nirmal committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    6739df2 View commit details
    Browse the repository at this point in the history
  9. Update samples from iox_queue to reader history cache in the

    read/take_impl APIs when SHM is supported and iox_listener is not
    attached to a specific reader
    
    Signed-off-by: Sumanth Nirmal <sumanth.724@gmail.com>
    sumanth-nirmal committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    23429fc View commit details
    Browse the repository at this point in the history
  10. Resolve merge conflicts

    Signed-off-by: Sumanth Nirmal <sumanth.724@gmail.com>
    sumanth-nirmal committed Mar 24, 2022
    Configuration menu
    Copy the full SHA
    bbbb793 View commit details
    Browse the repository at this point in the history