Skip to content

Fix Link/SinkTask::setEventCallback

Alejandro Homs Puron requested to merge fix_set_event_callback into master

Link and sink tasks are added dynamically to the execution chain during the acquisition. In particular, setEventCallback can be continuously called from parallel threads. If not properly taken into account, TaskEventCallbacks can be missed. This patch:

  • protects Link/SinkTask::setEventCallback against concurrent access

With less importance, it also:

  • protects Data::setData against self-assignment by calling setBuffer

Merge request reports