add clear_subscribers to unsubscribe all funcs #5

master
Hideaki Tai 4 years ago
parent 5cefd9b788
commit a3a4907d30

@ -394,6 +394,12 @@ namespace arx
unsubscribe(u);
}
inline void clear_subscribers()
{
unsubscribe();
callbacks.clear();
}
protected:
void attach(S& s) { stream = &s; }

Loading…
Cancel
Save