diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/test/llpipeutil.cpp | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/linden/indra/test/llpipeutil.cpp b/linden/indra/test/llpipeutil.cpp index 3cca91f..e47e559 100644 --- a/linden/indra/test/llpipeutil.cpp +++ b/linden/indra/test/llpipeutil.cpp | |||
@@ -13,12 +13,12 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlife.com/developers/opensource/gplv2 | 16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at http://secondlife.com/developers/opensource/flossexception | 21 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
22 | * | 22 | * |
23 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
24 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -164,3 +164,25 @@ LLIOPipe::EStatus LLIONull::process_impl( | |||
164 | { | 164 | { |
165 | return STATUS_OK; | 165 | return STATUS_OK; |
166 | } | 166 | } |
167 | |||
168 | // virtual | ||
169 | LLIOPipe::EStatus LLIOSleeper::process_impl( | ||
170 | const LLChannelDescriptors& channels, | ||
171 | buffer_ptr_t& buffer, | ||
172 | bool& eos, | ||
173 | LLSD& context, | ||
174 | LLPumpIO* pump) | ||
175 | { | ||
176 | if(!mRespond) | ||
177 | { | ||
178 | lldebugs << "LLIOSleeper::process_impl() sleeping." << llendl; | ||
179 | mRespond = true; | ||
180 | static const F64 SLEEP_TIME = 2.0; | ||
181 | pump->sleepChain(SLEEP_TIME); | ||
182 | return STATUS_BREAK; | ||
183 | } | ||
184 | lldebugs << "LLIOSleeper::process_impl() responding." << llendl; | ||
185 | LLBufferStream ostr(channels, buffer.get()); | ||
186 | ostr << "huh? sorry, I was sleeping." << std::endl; | ||
187 | return STATUS_DONE; | ||
188 | } | ||