aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llpumpio.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llmessage/llpumpio.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llmessage/llpumpio.cpp')
-rw-r--r--linden/indra/llmessage/llpumpio.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/linden/indra/llmessage/llpumpio.cpp b/linden/indra/llmessage/llpumpio.cpp
index f60ee2b..c92612f 100644
--- a/linden/indra/llmessage/llpumpio.cpp
+++ b/linden/indra/llmessage/llpumpio.cpp
@@ -36,7 +36,7 @@
36 36
37#include <map> 37#include <map>
38#include <set> 38#include <set>
39#include "apr-1/apr_poll.h" 39#include "apr_poll.h"
40 40
41#include "llapr.h" 41#include "llapr.h"
42#include "llmemtype.h" 42#include "llmemtype.h"
@@ -49,7 +49,7 @@
49//#define LL_DEBUG_PIPE_TYPE_IN_PUMP 1 49//#define LL_DEBUG_PIPE_TYPE_IN_PUMP 1
50//#define LL_DEBUG_POLL_FILE_DESCRIPTORS 1 50//#define LL_DEBUG_POLL_FILE_DESCRIPTORS 1
51#if LL_DEBUG_POLL_FILE_DESCRIPTORS 51#if LL_DEBUG_POLL_FILE_DESCRIPTORS
52#include "apr-1/apr_portable.h" 52#include "apr_portable.h"
53#endif 53#endif
54#endif 54#endif
55 55
@@ -261,7 +261,7 @@ bool LLPumpIO::addChain(
261bool LLPumpIO::setTimeoutSeconds(F32 timeout) 261bool LLPumpIO::setTimeoutSeconds(F32 timeout)
262{ 262{
263 // If no chain is running, return failure. 263 // If no chain is running, return failure.
264 if(current_chain_t() == mCurrentChain) 264 if(mRunningChains.end() == mCurrentChain)
265 { 265 {
266 return false; 266 return false;
267 } 267 }
@@ -365,7 +365,7 @@ S32 LLPumpIO::setLock()
365 // lock the runner at the same time. 365 // lock the runner at the same time.
366 366
367 // If no chain is running, return failure. 367 // If no chain is running, return failure.
368 if(current_chain_t() == mCurrentChain) 368 if(mRunningChains.end() == mCurrentChain)
369 { 369 {
370 return 0; 370 return 0;
371 } 371 }
@@ -414,7 +414,7 @@ bool LLPumpIO::sleepChain(F64 seconds)
414bool LLPumpIO::copyCurrentLinkInfo(links_t& links) const 414bool LLPumpIO::copyCurrentLinkInfo(links_t& links) const
415{ 415{
416 LLMemType m1(LLMemType::MTYPE_IO_PUMP); 416 LLMemType m1(LLMemType::MTYPE_IO_PUMP);
417 if(current_chain_t() == mCurrentChain) 417 if(mRunningChains.end() == mCurrentChain)
418 { 418 {
419 return false; 419 return false;
420 } 420 }
@@ -584,6 +584,7 @@ void LLPumpIO::pump(const S32& poll_timeout)
584 } 584 }
585 PUMP_DEBUG; 585 PUMP_DEBUG;
586 mCurrentChain = run_chain; 586 mCurrentChain = run_chain;
587
587 if((*run_chain).mDescriptors.empty()) 588 if((*run_chain).mDescriptors.empty())
588 { 589 {
589 // if there are no conditionals, just process this chain. 590 // if there are no conditionals, just process this chain.
@@ -702,7 +703,7 @@ void LLPumpIO::pump(const S32& poll_timeout)
702 703
703 PUMP_DEBUG; 704 PUMP_DEBUG;
704 // null out the chain 705 // null out the chain
705 mCurrentChain = current_chain_t(); 706 mCurrentChain = mRunningChains.end();
706 END_PUMP_DEBUG; 707 END_PUMP_DEBUG;
707} 708}
708 709