omni::event6::attach
NAME

omni::event6::attach

A member function of omni::event6

#include <omni/delegate/6.hpp>
template < ret_t (*fnptr)(PT1, PT2, PT3, PT4, PT5, PT6) > void omni::event6::attach()

SYNOPSIS

Add (attach) an anonymous/non-member or static member function to this delegate.

top

DESCRIPTION

Adds a delegate to the end of this instances invocation list. See the notes below about race conditions.

top

PARAMETERS

fnptr - The function to attach to the delegate

top


CONSIDERATIONS

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


COMPLEXITY



top