ispringtech / FastSignals

Easy to use, fast and lightweight C++17 signals and slots library, drop-in replacement for the Boost.Signals2
MIT License
25 stars 10 forks source link

Makes signal_impl::count() threadsafe #17

Closed alexey-malov closed 5 years ago

alexey-malov commented 5 years ago

signal_impl::count() invokes m_function.size() without locking a mutex. This PR fixes this issue. This PR depends on #16 (make spin_mutex methods noexcept).