Multi-threaded readers

1 post / 0 new
saharbnm's picture
Offline
Last seen: 1 year 8 months ago
Joined: 01/17/2018
Posts: 1
Multi-threaded readers

Hi colleagues,

Excuse me for my ignorance I am pretty new in DDS RTI

I wonder if u can help me on the bellow, in my project the subscriber is doing an heavy operation once it getting a sample. so I tried to build a pool of reader threads, my intention was that each reader will take sample from the queue and work on it (take not read – will remove it from the queue) But from what I see, I am getting the same sample on all the threads - all the readers, I wonder what I need to do to build a reader pool which all use the same queue and all can take samples from it  ? from what I read most of the operation are thread safe so I believe this should be an easy task

BTW currently I am solving the issue by filtering the samples according to the key but this is not my intention 

Thanks for your help  

Organization: