[Home]Block/Unblock Connection - Signal Suggestion

BOOST WIKI | Block | RecentChanges | Preferences | Page List | Links List

block/unblock connection

Back to Suggestions - signal library


Like libsigc++, add 2 methods in the connection class: block(), unblock() which temporality block a connection from receiving a signal.

Example:

connection c = sig.connect(f) ;
sig(1) ; // f is called
c.block() ;
sig(2) ; // f is not called but is still connected
c.unblock() ;
sig(3) ; // f is called

- [Frantz Maerten]?


BOOST WIKI | Block | RecentChanges | Preferences | Page List | Links List
Edit text of this page | View other revisions
Last edited April 29, 2005 6:04 am (diff)
Search:
Disclaimer: This site not officially maintained by Boost Developers