aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llpumpio.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/llmessage/llpumpio.cpp
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/llmessage/llpumpio.cpp')
-rw-r--r--linden/indra/llmessage/llpumpio.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/llmessage/llpumpio.cpp b/linden/indra/llmessage/llpumpio.cpp
index 4ce15b9..e76f3ea 100644
--- a/linden/indra/llmessage/llpumpio.cpp
+++ b/linden/indra/llmessage/llpumpio.cpp
@@ -6,6 +6,7 @@
6 * 6 *
7 * Copyright (c) 2004-2007, Linden Research, Inc. 7 * Copyright (c) 2004-2007, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
10 * to you under the terms of the GNU General Public License, version 2.0 11 * to you under the terms of the GNU General Public License, version 2.0
11 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -333,6 +334,12 @@ bool LLPumpIO::copyCurrentLinkInfo(links_t& links) const
333 334
334void LLPumpIO::pump() 335void LLPumpIO::pump()
335{ 336{
337 pump(DEFAULT_POLL_TIMEOUT);
338}
339
340//timeout is in microseconds
341void LLPumpIO::pump(const S32& poll_timeout)
342{
336 LLMemType m1(LLMemType::MTYPE_IO_PUMP); 343 LLMemType m1(LLMemType::MTYPE_IO_PUMP);
337 LLFastTimer t1(LLFastTimer::FTM_PUMP); 344 LLFastTimer t1(LLFastTimer::FTM_PUMP);
338 //llinfos << "LLPumpIO::pump()" << llendl; 345 //llinfos << "LLPumpIO::pump()" << llendl;
@@ -414,7 +421,7 @@ void LLPumpIO::pump()
414 S32 count = 0; 421 S32 count = 0;
415 S32 client_id = 0; 422 S32 client_id = 0;
416 const apr_pollfd_t* poll_fd = NULL; 423 const apr_pollfd_t* poll_fd = NULL;
417 apr_pollset_poll(mPollset, DEFAULT_POLL_TIMEOUT, &count, &poll_fd); 424 apr_pollset_poll(mPollset, poll_timeout, &count, &poll_fd);
418 PUMP_DEBUG; 425 PUMP_DEBUG;
419 for(S32 i = 0; i < count; ++i) 426 for(S32 i = 0; i < count; ++i)
420 { 427 {