Note that Boost.Signals2
supersedes Boost.Signals
. It has much more flexible and powerful tracking mechanism.
Although the library aims to provide a thread-safe solution for multi-threaded programs, the locking overhead can be avoided in a single-threaded environment by setting boost::signals2::dummy_mutex
as signal's internal mutex.