aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llpumpio.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llpumpio.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llpumpio.cpp b/linden/indra/llmessage/llpumpio.cpp
index c92612f..6adf9c2 100644
--- a/linden/indra/llmessage/llpumpio.cpp
+++ b/linden/indra/llmessage/llpumpio.cpp
@@ -269,6 +269,13 @@ bool LLPumpIO::setTimeoutSeconds(F32 timeout)
269 return true; 269 return true;
270} 270}
271 271
272void LLPumpIO::adjustTimeoutSeconds(F32 delta)
273{
274 // If no chain is running, bail
275 if(current_chain_t() == mCurrentChain) return;
276 (*mCurrentChain).adjustTimeoutSeconds(delta);
277}
278
272static std::string events_2_string(apr_int16_t events) 279static std::string events_2_string(apr_int16_t events)
273{ 280{
274 std::ostringstream ostr; 281 std::ostringstream ostr;
@@ -1161,3 +1168,14 @@ void LLPumpIO::LLChainInfo::setTimeoutSeconds(F32 timeout)
1161 mTimer.stop(); 1168 mTimer.stop();
1162 } 1169 }
1163} 1170}
1171
1172void LLPumpIO::LLChainInfo::adjustTimeoutSeconds(F32 delta)
1173{
1174 LLMemType m1(LLMemType::MTYPE_IO_PUMP);
1175 if(mTimer.getStarted())
1176 {
1177 F64 expiry = mTimer.expiresAt();
1178 expiry += delta;
1179 mTimer.setExpiryAt(expiry);
1180 }
1181}