Skip to content

InterfaceManager: add unique IDs for listeners#132

Open
blackBeaRR wants to merge 5 commits intojoinframework:mainfrom
blackBeaRR:issue-131
Open

InterfaceManager: add unique IDs for listeners#132
blackBeaRR wants to merge 5 commits intojoinframework:mainfrom
blackBeaRR:issue-131

Conversation

@blackBeaRR
Copy link

No description provided.

@mrabine mrabine self-requested a review February 21, 2026 15:59
{
ScopedLock <Mutex> lock (_linkMutex);
_linkListeners.push_back (cb);
return _linkListeners.emplace(_listenersCounter.fetch_add(1, std::memory_order::memory_order_acq_rel) + 1, cb).first->first;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is always protected by the mutex so atomic is not needed at all in fact.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove atomic ?

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.24%. Comparing base (90b5f32) to head (5a06f90).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
- Coverage   96.24%   96.24%   -0.01%     
==========================================
  Files          77       77              
  Lines        9249     9238      -11     
==========================================
- Hits         8902     8891      -11     
  Misses        347      347              
Flag Coverage Δ
unittests 96.24% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants