Skip to content

Commit

Permalink
fix additional coverity in signal.h
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Sep 16, 2024
1 parent 2063010 commit 8544e59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion third-party/rsutils/include/rsutils/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ class signal
}

// How many subscriptions are active
size_t size() const { return _impl->subscribers.size(); }
size_t size() const
{
std::lock_guard< std::mutex > locker( _impl->mutex );
return _impl->subscribers.size();
}
};


Expand Down

0 comments on commit 8544e59

Please sign in to comment.