Fix Link/SinkTask::setEventCallback
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