21.8 Unregistering Threads

If the logic of your application requires spawning new threads, and in those threads you are calling a Connext DDS API such as write(), you may notice a memory growth.

To ensure that all the resources allocated in that thread are correctly released, remember to call unregister_thread() right before exiting the thread.

Here is what the full API looks like:

DDS_ReturnCode_t DDS_DomainParticipantFactory_unregister_thread(DDS_DomainParticipantFactory *  self);

For more information, search for DDS_DomainParticipantFactory_unregister_thread in the API Reference HTML documentation.

© 2020 RTI