Monday, 15 June 2015

c++ - Execute a code when a callback disconnect from boost::signals2::signal -



c++ - Execute a code when a callback disconnect from boost::signals2::signal -

short: there way execute code when callback connected using connect disconnected?

long: have class multiple callbacks expensive , want generate callbacks interested user:

boost::signals2::connection bind_to_signal(signal_code code, signal_signature const& fn) { start_callback(code); homecoming signal_[code].connect(fn); }

now want execute stop_callback when callbacks bound signal disconnected.

c++ boost signals2

No comments:

Post a Comment