You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When studying the code of data_router.cpp, I identified a comment which does not match the implementation:
In NewSourceSessionImpl, lines 148-153:
std::lock_guard<std::mutex> lock(subscriber_mutex_);
// Insert is protected by subscriber_mutex_ held by caller (new_source_session_impl).
// This relies on the calling convention that SourceSession is only constructed
// from new_source_session_impl() which acquires the lock before construction.
std::ignore = sources_.insert(source_session.get());
Problem notifications
Bug has no functional impact. No urgent problem notification required.
Analysis results
Obviously, the mutex is not held by the caller.
The comment refers to functions in snake case which may have been used in legacy version.
Activity
Fix eclipse-score#366 Missleading/Outdated comment in data router