summaryrefslogtreecommitdiff
path: root/indra/llmessage/lliosocket.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-02-02 14:26:33 -0500
committerOz Linden <oz@lindenlab.com>2012-02-02 14:26:33 -0500
commit5b2dbbadf70ee33bfd288b6384ae0d51715488b1 (patch)
tree48d7678fbbca7359db17b472e3233c1d2874828b /indra/llmessage/lliosocket.cpp
parent03290257345c22f909cf1cfac3981e7e07820d21 (diff)
parent34408bed2644ff957502454f05c21c31fec90009 (diff)
merge changes for latest viewer-development
Diffstat (limited to 'indra/llmessage/lliosocket.cpp')
-rw-r--r--indra/llmessage/lliosocket.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llmessage/lliosocket.cpp b/indra/llmessage/lliosocket.cpp
index 54ceab3422..d5b4d45821 100644
--- a/indra/llmessage/lliosocket.cpp
+++ b/indra/llmessage/lliosocket.cpp
@@ -445,6 +445,7 @@ LLIOPipe::EStatus LLIOSocketWriter::process_impl(
// efficient - not only because writev() is better, but also
// because we won't have to do as much work to find the start
// address.
+ buffer->lock();
LLBufferArray::segment_iterator_t it;
LLBufferArray::segment_iterator_t end = buffer->endSegment();
LLSegment segment;
@@ -524,6 +525,8 @@ LLIOPipe::EStatus LLIOSocketWriter::process_impl(
}
}
+ buffer->unlock();
+
PUMP_DEBUG;
if(done && eos)
{