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"
HERE is how i start waitset, by start a new thread and detach it
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.
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"
HERE is how i start waitset, by start a new thread and detach it
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.