Created
August 2, 2012 05:33
-
-
Save jeffomatic/3234045 to your computer and use it in GitHub Desktop.
blog: jl_signal, code: catastrophic signal connection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JL_SIGNAL() oSignal; | |
void f1() { oSignal.Disconnect( &f1 ); } | |
void f2() { /* do something */ } | |
oSignal.Connect( &f1 ); | |
oSignal.Connect( &f2 ); | |
oSignal.Emit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment