diff options
author | Rider Linden <rider@lindenlab.com> | 2016-06-23 15:03:39 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2016-06-23 15:03:39 -0700 |
commit | d161651cdb2ea8c3e73055cbf4a85510b8da56db (patch) | |
tree | ef20df24d38c07d3aef23c3f06d417b0f4123b90 /indra/llcommon/llevents.h | |
parent | 0a9f25bcfbc977cf894e83fda95d7ff693039923 (diff) |
MAINT-6521: Allow anonymous connections to bypass the dependency and order tracking.
Diffstat (limited to 'indra/llcommon/llevents.h')
-rw-r--r-- | indra/llcommon/llevents.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/llevents.h b/indra/llcommon/llevents.h index ba4fcd766e..694951e699 100644 --- a/indra/llcommon/llevents.h +++ b/indra/llcommon/llevents.h @@ -365,6 +365,8 @@ typedef boost::signals2::trackable LLEventTrackable; class LL_COMMON_API LLEventPump: public LLEventTrackable { public: + static const std::string ANONYMOUS; // constant for anonymous listeners. + /** * Exception thrown by LLEventPump(). You are trying to instantiate an * LLEventPump (subclass) using the same name as some other instance, and @@ -476,6 +478,12 @@ public: * instantiate your listener, then passing the same name on each listen() * call, allows us to optimize away the second and subsequent dependency * sorts. + * + * If name is set to LLEventPump::ANONYMOUS listen will bypass the entire + * dependency and ordering calculation. In this case, it is critical that + * the result be assigned to a LLTempBoundListener or the listener is + * manually disconnected when no longer needed since there will be no + * way to later find and disconnect this listener manually. * * If (as is typical) you pass a <tt>boost::bind()</tt> expression as @a * listener, listen() will inspect the components of that expression. If a |