DDS-PSM-Cxx 1.1 RTF Avatar
  1. OMG Issue

DDSPSMC11 — Inconsistent ways to set functor in Condition types

  • Key: DDSPSMC11-64
  • Status: open  
  • Source: Real-Time Innovations ( Alejandro Campos)
  • Summary:

    Conditions have an optional functor handler that WaitSet::dispatch() calls when they're active. But the ways to set this handler vary depending on the Condition type:

    Condition type How you set the handler
    GuardCondition handler(Functor&) setter (therefore mutable)
    ReadCondition In constructor (therefore immutable)
    QueryCondition No way to set it (it seems a oversight; should be same as ReadCondition)
    StatusCondition No way to set it (not clear if it's on purpose or an oversight)

    Note that making the handler mutable or immutable has consequences in the thread-safety requirements of the implementations.

  • Reported: DDS-PSM-Cxx 1.0 — Thu, 21 Jul 2016 22:35 GMT
  • Updated: Thu, 21 Jul 2016 22:39 GMT