diff options
author | Oz Linden <oz@lindenlab.com> | 2011-12-12 09:04:33 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-12-12 09:04:33 -0500 |
commit | f1a4593e471f4ae0e08767f73f100add683965bf (patch) | |
tree | 0f0f42a772c9c739ee5e726a8044e2888d17b735 /indra/newview/llappviewer.cpp | |
parent | d7e6f21981b0a00c0d89096cc17bab07be60e51a (diff) | |
parent | 50a57ba9fec0435a990338398d5c4f23c5cc91f0 (diff) |
merge changes for vmrg-204
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index cbaddd74c4..b45f9c55fb 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1381,6 +1381,11 @@ bool LLAppViewer::mainLoop() } } gMeshRepo.update() ; + + if(!LLCurl::getCurlThread()->update(1)) + { + LLCurl::getCurlThread()->pause() ; //nothing in the curl thread. + } if(!total_work_pending) //pause texture fetching threads if nothing to process. { @@ -1776,6 +1781,7 @@ bool LLAppViewer::cleanup() pending += LLAppViewer::getTextureFetch()->update(1); // unpauses the texture fetch thread pending += LLVFSThread::updateClass(0); pending += LLLFSThread::updateClass(0); + pending += LLCurl::getCurlThread()->update(1) ; F64 idle_time = idleTimer.getElapsedTimeF64(); if(!pending) { @@ -1787,6 +1793,7 @@ bool LLAppViewer::cleanup() break; } } + LLCurl::getCurlThread()->pause() ; // Delete workers first // shotdown all worker threads before deleting them in case of co-dependencies |