NAME
A member function of omni::event2
OVERLOADS
omni::event2::attach
A member function of omni::event2
#include <omni/delegate/2.hpp>
void omni::event2::attach(const omni::delegate2< Ret, PT1, PT2 >& d)
OVERLOADS
template < class InputIterator > void omni::event2::attach(InputIterator begin, InputIterator end)
void omni::event2::attach(const event2< Ret, PT1, PT2 >& e)
template < ret_t (*fnptr)(PT1, PT2) > void omni::event2::attach()
template < class T, Ret (T::*fnptr)(PT1, PT2) > void omni::event2::attach(T& obj)
template < class T, Ret (T::*fnptr)(PT1, PT2) > void omni::event2::attach(const T& obj)
template < class T, Ret (T::*fnptr)(PT1, PT2) > void omni::event2::attach(const T *const obj)
DESCRIPTION
Adds a delegate to the end of this instances invocation list. See the notes below about race conditions.
top
Adds a delegate to the end of this instances invocation list. See the notes below about race conditions.
top
CONSIDERATIONS
If the OMNI_SAFE_EVENT defines are not enabled, it is undefined if this event is invoked and edited at the same
top
If the OMNI_SAFE_EVENT defines are not enabled, it is undefined if this event is invoked and edited at the same
time
; i.e. a race condition can occur if you attach to an event from one thread while invoking from another.
top