ADLINK-IST / opensplice

This is the Vortex OpenSplice Community Edition source repository. For our commercial offering see
https://www.adlinktech.com/en/vortex-opensplice-data-distribution-service
Apache License 2.0
259 stars 157 forks source link

using waitset (isocpp2 API) to process data #111

Closed fresh-ji closed 4 years ago

fresh-ji commented 4 years ago

Dear whom it concerned,

Currently i am using isocpp2 API to build my program, using waitset to acquire data from DDS.

i wrote class "ReadCondHandler" as read handler:

捕获

HERE is how i using "ReadCondHandler" : i transfer a instance of class "Interface" to the "ReadCondHandler", in constructor of "ReadCondHandler" the "ReadCondHandler" could access parameters in the instance of class "Interface"

捕获2

HERE is how i start waitset, by start a new thread and detach it

捕获3

THE RESULT IS: when data comes from DDS, in "void operator() (const dds::sub::cond::ReadCondition& cond)" i can use the handle of "Interface" BUT i can not access parameters in it.

Could you give me some advices.

Thanks.

fresh-ji commented 4 years ago

no comment