summaryrefslogtreecommitdiff
path: root/indra/llmessage/llpumpio.h
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-01-30 15:48:44 -0500
committerOz Linden <oz@lindenlab.com>2012-01-30 15:48:44 -0500
commit1ed8faee81804af2f0640784191f1deadfa9f50c (patch)
tree1bbee24e0c0c388b1f0544145db8eff1588546f7 /indra/llmessage/llpumpio.h
parent4ef9277761b5faee2825177112939b72c563a4ea (diff)
parent717a6f3306d9382ea252c3e0f243b785c9cae15a (diff)
merge changes for vmrg-219
Diffstat (limited to 'indra/llmessage/llpumpio.h')
-rw-r--r--indra/llmessage/llpumpio.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/llmessage/llpumpio.h b/indra/llmessage/llpumpio.h
index 9303c9d7fc..d2c5d37571 100644
--- a/indra/llmessage/llpumpio.h
+++ b/indra/llmessage/llpumpio.h
@@ -111,9 +111,10 @@ public:
* @param chain The pipes for the chain
* @param timeout The number of seconds in the future to
* expire. Pass in 0.0f to never expire.
+ * @param has_curl_request The chain contains LLURLRequest if true.
* @return Returns true if anything was added to the pump.
*/
- bool addChain(const chain_t& chain, F32 timeout);
+ bool addChain(const chain_t& chain, F32 timeout, bool has_curl_request = false);
/**
* @brief Struct to associate a pipe with it's buffer io indexes.
@@ -356,12 +357,13 @@ protected:
// basic member data
bool mInit;
+ bool mEOS;
+ bool mHasCurlRequest;
S32 mLock;
LLFrameTimer mTimer;
links_t::iterator mHead;
links_t mChainLinks;
- LLIOPipe::buffer_ptr_t mData;
- bool mEOS;
+ LLIOPipe::buffer_ptr_t mData;
LLSD mContext;
// tracking inside the pump
@@ -402,7 +404,7 @@ protected:
protected:
void initialize(apr_pool_t* pool);
void cleanup();
-
+ current_chain_t removeRunningChain(current_chain_t& chain) ;
/**
* @brief Given the internal state of the chains, rebuild the pollset
* @see setConditional()
@@ -429,6 +431,9 @@ protected:
*/
bool handleChainError(LLChainInfo& chain, LLIOPipe::EStatus error);
+ //if the chain is expired, remove it
+ bool isChainExpired(LLChainInfo& chain) ;
+
public:
/**
* @brief Return number of running chains.