Asynchronous Write Behavior

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

Hi,

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,
GS

Sebas's picture
Offline
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.

Sebas