Asynchronous Write Behavior

2 posts / 0 new
Last post
Last seen: 1 year 1 month ago
Joined: 03/31/2016
Posts: 23
Asynchronous Write Behavior


Will the ReturnCode_t from writing with asynchronous publisher always returns a value of 0 (DDS_RETCODE_OK) due to the asynchronous writing?
If that is the case, what other kind of indication can I get in order to infer if the operation was performed without any errors?

Best regards,

Sebas's picture
Last seen: 7 years 4 months ago
Joined: 06/16/2016
Posts: 1

Hi GS,

Thanks you for your question.

When you use asynchronous publisher, the call to "write" function will return the same set of error as using synchronous publisher.

For example, you could get an error if the queue of sample is full and the indicated timeout expired before it was possible to find an available space in the queue for such sample. 

These error are returned by the "write" call.

I hope this helps.