cyclonedds/src/core/ddsc
Erik Boasson 1a3d5c7aba Fix DATA_AVAILABLE race condition
The DATA_AVAILABLE status was reset by read and take while holding the
upper-layer reader lock, but after completing the read/take operation on
the RHC.  As data can be written into the RHC without holding the
upper-layer reader lock, new data could arrive in between the
reading/taking and the resetting of the DATA_AVAILABLE status, leading
to a missed detection.  Resetting DATA_AVAILABLE prior to accessing the
RHC solves this.

Signed-off-by: Erik Boasson <eb@ilities.com>
2019-04-24 14:09:30 +02:00
..
cmake Initial contribution 2018-04-10 17:03:59 +02:00
include always append 0 byte to user/group/topic data 2019-04-24 14:09:30 +02:00
src Fix DATA_AVAILABLE race condition 2019-04-24 14:09:30 +02:00
tests lift limits on handle allocation and reuse (#95) 2019-04-21 16:05:06 +02:00
CMakeLists.txt lift limits on handle allocation and reuse (#95) 2019-04-21 16:05:06 +02:00