Skip to content

Instantly share code, notes, and snippets.

@jeffomatic
Created August 2, 2012 05:33
Show Gist options
  • Save jeffomatic/3234045 to your computer and use it in GitHub Desktop.
Save jeffomatic/3234045 to your computer and use it in GitHub Desktop.
blog: jl_signal, code: catastrophic signal connection
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