Function dds_create_waitset

Function Documentation

dds_entity_t dds_create_waitset(dds_entity_t participant)

Create a waitset and allocate the resources required.

A WaitSet object allows an application to wait until one or more of the conditions of the attached entities evaluates to TRUE or until the timeout expires.

Parameters

participant[in] Domain participant which the WaitSet contains.

Return values
  • >=0 – A valid waitset handle.

  • DDS_RETCODE_ERROR – An internal error has occurred.

  • DDS_RETCODE_ILLEGAL_OPERATION – The operation is invoked on an inappropriate object.

  • DDS_RETCODE_ALREADY_DELETED – The entity has already been deleted.

Returns

A valid waitset handle or an error code.