Jump to content
OpenSplice DDS Forum

Search the Community

Showing results for tags 'isocpp2'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • About OpenSplice DDS
    • News and Events
    • Site Feedback
  • Using OpenSplice DDS
    • General
    • Troubleshooting
  • Understanding OpenSplice DDS
    • OpenSplice DDS Slideshows
    • OpenSplice DDS Movies
  • Community
    • Project: SIMD
    • Project: CamelOS
    • Project: DDS Touchstone
    • Project: RESTful DDS
    • Mac OS X

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Company

Found 2 results

  1. Emmanuel Prunet

    register_instance vs lookup_instance

    Hi, I want to know the best usage of register_instance and lookup_instance on a datawriter for successive write of the same instance. Should I do : I) auto h1 = writer.register_instance(ddsData); map.insert(h1); .... writer.write(ddsData, map.find(h1)); II) writer.register_instance(ddsData); .... writer.write(ddsData, writer.lookup_instance(ddsData)); III) writer.write(ddsData, writer.register_instance(ddsData)); In I) I register the instance and save it in a map. Then, when I want to write the instance, I get the instance_handle in the map and use it in the write() call. In II) I just register the instance. Then, when I want to write the instance, I retrieve the instance_handle with lookup_instance and use it in the write() call. In III) I register the instance in the write() call. If register_instance is idempotent, I think III) is what I want to do : registering the instance the first time then use the instance_handle for the write call. But I don't know if instance handles are internally stored in a map or if I should do it myself like in I) Regards
  2. I am having issues where data is only being sent if writer are being kept alive for unknown periods of time e.g. the following does not work. { Data data; dds::pub::DataWriter<Data> writer = ... create the writer ... writer << data; } If the writer is let to persist for longer then the data is sent but in the case where the writer is destroyed "shortly" after the data is written no data is sent. Is that expected behavior or a bug. I would expect any data to be sent independent of when the writer is destructed. Thanks, Harald
×