diff options
author | brad kittenbrink <brad@lindenlab.com> | 2009-08-11 12:21:55 -0400 |
---|---|---|
committer | brad kittenbrink <brad@lindenlab.com> | 2009-08-11 12:21:55 -0400 |
commit | dc2d11d3de38d42b3d696abeb189c923881b6f63 (patch) | |
tree | e85be2840a69de1bdccad31e7bdab903803ed1b4 /indra/llcommon/llevents.cpp | |
parent | b2632c50efc12eacdcadace64e6c0f1906b86ff6 (diff) | |
parent | 8f4811f3fd7f252a5f5bc50ed11fecd8e42f3e68 (diff) |
Merged in my latest work including improved version of DEV-35401 "doubleton" workaround and LLFloaterTOS post-merge fixups.
Diffstat (limited to 'indra/llcommon/llevents.cpp')
-rw-r--r-- | indra/llcommon/llevents.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/indra/llcommon/llevents.cpp b/indra/llcommon/llevents.cpp index c2fa79a524..aec9acc7ef 100644 --- a/indra/llcommon/llevents.cpp +++ b/indra/llcommon/llevents.cpp @@ -59,14 +59,12 @@ const char* queue_names[] = /***************************************************************************** * If there's a "mainloop" pump, listen on that to flush all LLEventQueues *****************************************************************************/ -struct RegisterFlush +struct RegisterFlush : public LLEventTrackable { RegisterFlush(): - pumps(LLEventPumps::instance()), - mainloop(pumps.obtain("mainloop")), - name("flushLLEventQueues") + pumps(LLEventPumps::instance()) { - mainloop.listen(name, boost::bind(&RegisterFlush::flush, this, _1)); + pumps.obtain("mainloop").listen("flushLLEventQueues", boost::bind(&RegisterFlush::flush, this, _1)); } bool flush(const LLSD&) { @@ -75,11 +73,9 @@ struct RegisterFlush } ~RegisterFlush() { - mainloop.stopListening(name); + // LLEventTrackable handles stopListening for us. } LLEventPumps& pumps; - LLEventPump& mainloop; - const std::string name; }; static RegisterFlush registerFlush; |