sl@0
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
/**
|
sl@0
|
17 |
@file
|
sl@0
|
18 |
@test
|
sl@0
|
19 |
@internalComponent - Internal Symbian test code
|
sl@0
|
20 |
*/
|
sl@0
|
21 |
|
sl@0
|
22 |
#include <e32std.h>
|
sl@0
|
23 |
#include "tcompositionbackend.h"
|
sl@0
|
24 |
#include <graphics/suerror.h>
|
sl@0
|
25 |
|
sl@0
|
26 |
const TInt KNotificationsAtTime = 10; //how many notifications could be processed at a time, varies from 1...
|
sl@0
|
27 |
|
sl@0
|
28 |
CTContentUpdateReceiver::CTContentUpdateReceiver(TInt aScreen) :
|
sl@0
|
29 |
iScreen(aScreen), iVisible(ETrue)
|
sl@0
|
30 |
{
|
sl@0
|
31 |
RThread thread;
|
sl@0
|
32 |
iReceiverThreadId = thread.Id();
|
sl@0
|
33 |
}
|
sl@0
|
34 |
|
sl@0
|
35 |
CTContentUpdateReceiver::~CTContentUpdateReceiver()
|
sl@0
|
36 |
{
|
sl@0
|
37 |
if(iPeriodic)
|
sl@0
|
38 |
iPeriodic->Cancel();
|
sl@0
|
39 |
delete iPeriodic;
|
sl@0
|
40 |
iLock.Close();
|
sl@0
|
41 |
iPriorityLock.Close();
|
sl@0
|
42 |
}
|
sl@0
|
43 |
|
sl@0
|
44 |
void CTContentUpdateReceiver::ConstructL()
|
sl@0
|
45 |
{
|
sl@0
|
46 |
TCallBack callback(CallBack);
|
sl@0
|
47 |
callback.iPtr = this;
|
sl@0
|
48 |
User::LeaveIfError(iLock.CreateLocal());
|
sl@0
|
49 |
User::LeaveIfError(iPriorityLock.CreateLocal(0));
|
sl@0
|
50 |
iPeriodic= CPeriodic::NewL(CPeriodic::EPriorityStandard);
|
sl@0
|
51 |
iPeriodic->Start(TTimeIntervalMicroSeconds32(0),TTimeIntervalMicroSeconds32(KCompositionInterval), callback);
|
sl@0
|
52 |
}
|
sl@0
|
53 |
|
sl@0
|
54 |
CTContentUpdateReceiver* CTContentUpdateReceiver::NewL(TInt aScreen)
|
sl@0
|
55 |
{
|
sl@0
|
56 |
CTContentUpdateReceiver* receiver = new (ELeave) CTContentUpdateReceiver(aScreen);
|
sl@0
|
57 |
CleanupStack::PushL(receiver);
|
sl@0
|
58 |
receiver->ConstructL();
|
sl@0
|
59 |
CleanupStack::Pop();
|
sl@0
|
60 |
return receiver;
|
sl@0
|
61 |
}
|
sl@0
|
62 |
|
sl@0
|
63 |
TInt CTContentUpdateReceiver::Extension_(TUint aExtensionId, TAny*& aRetIface, TAny* a1)
|
sl@0
|
64 |
{
|
sl@0
|
65 |
switch (aExtensionId)
|
sl@0
|
66 |
{
|
sl@0
|
67 |
case MCompositionSurfaceUpdate::ETypeId:
|
sl@0
|
68 |
aRetIface= static_cast<MCompositionSurfaceUpdate*>(this);
|
sl@0
|
69 |
return KErrNone;
|
sl@0
|
70 |
|
sl@0
|
71 |
default: ;
|
sl@0
|
72 |
}
|
sl@0
|
73 |
return CExtensionContainer::Extension_(aExtensionId,aRetIface,a1);
|
sl@0
|
74 |
}
|
sl@0
|
75 |
|
sl@0
|
76 |
TInt CTContentUpdateReceiver::CallBack(TAny *aAny)
|
sl@0
|
77 |
{
|
sl@0
|
78 |
return (static_cast <CTContentUpdateReceiver*> (aAny))->CheckNewNotifications();
|
sl@0
|
79 |
}
|
sl@0
|
80 |
|
sl@0
|
81 |
void CTContentUpdateReceiver::Stop()
|
sl@0
|
82 |
{
|
sl@0
|
83 |
iLock.Wait();
|
sl@0
|
84 |
iStop = ETrue;
|
sl@0
|
85 |
iLock.Signal();
|
sl@0
|
86 |
}
|
sl@0
|
87 |
|
sl@0
|
88 |
EXPORT_C void CTContentUpdateReceiver::SetVisible(TBool aVisible)
|
sl@0
|
89 |
{
|
sl@0
|
90 |
iLock.Wait();
|
sl@0
|
91 |
iVisible = aVisible;
|
sl@0
|
92 |
iLock.Signal();
|
sl@0
|
93 |
}
|
sl@0
|
94 |
|
sl@0
|
95 |
TInt CTContentUpdateReceiver::CheckNewNotifications()
|
sl@0
|
96 |
{
|
sl@0
|
97 |
iLock.Wait();
|
sl@0
|
98 |
if(iStop && (iNumberElements <= 0))
|
sl@0
|
99 |
{
|
sl@0
|
100 |
iLock.Signal();
|
sl@0
|
101 |
CActiveScheduler::Stop();
|
sl@0
|
102 |
return 0;//the return value is irrelevant for CPeriodic function
|
sl@0
|
103 |
}
|
sl@0
|
104 |
if(iSetInternalPriority)
|
sl@0
|
105 |
{
|
sl@0
|
106 |
TRAPD(res, DoSetInternalPriorityL());
|
sl@0
|
107 |
iLock.Signal();
|
sl@0
|
108 |
__ASSERT_ALWAYS(res ==KErrNone, User::Panic(_L("CheckNewNotifications"), KErrGeneral));
|
sl@0
|
109 |
return 0;//the return value is irrelevant for CPeriodic function
|
sl@0
|
110 |
}
|
sl@0
|
111 |
TInt index = 0;
|
sl@0
|
112 |
RThread thread;
|
sl@0
|
113 |
TInt res = thread.Open(iThreadId);
|
sl@0
|
114 |
__ASSERT_ALWAYS(res ==KErrNone, User::Panic(_L("CheckNewNotifications"), KErrGeneral));
|
sl@0
|
115 |
|
sl@0
|
116 |
//we will check only one limited amount of requests at the time
|
sl@0
|
117 |
for(TInt iteration = 0; (iNumberElements > index) && (iteration < KNotificationsAtTime); iteration++)
|
sl@0
|
118 |
{
|
sl@0
|
119 |
if(iArray[index].iType == EReqDisplayed)
|
sl@0
|
120 |
{
|
sl@0
|
121 |
*(iArray[index].iTimeStamp) = User::FastCounter();
|
sl@0
|
122 |
if(iCompositionOrder)
|
sl@0
|
123 |
{
|
sl@0
|
124 |
iCompositionOrder->SetOrder(EOrderComposition);
|
sl@0
|
125 |
}
|
sl@0
|
126 |
}
|
sl@0
|
127 |
else if(iArray[index].iType == EReqDisplayedXTimes)
|
sl@0
|
128 |
{
|
sl@0
|
129 |
iArray[index].iDisplayedXTimes--;
|
sl@0
|
130 |
if(iArray[index].iDisplayedXTimes > 0)
|
sl@0
|
131 |
{
|
sl@0
|
132 |
index++;
|
sl@0
|
133 |
continue;
|
sl@0
|
134 |
}
|
sl@0
|
135 |
}
|
sl@0
|
136 |
TRequestStatus* status = iArray[index].iStatus;
|
sl@0
|
137 |
res = iVisible ? KErrNone : KErrNotVisible;
|
sl@0
|
138 |
Remove(index);
|
sl@0
|
139 |
thread.RequestComplete(status, res);
|
sl@0
|
140 |
}
|
sl@0
|
141 |
thread.Close();
|
sl@0
|
142 |
iLock.Signal();
|
sl@0
|
143 |
return 0;//the return value is irrelevant for CPeriodic function
|
sl@0
|
144 |
}
|
sl@0
|
145 |
|
sl@0
|
146 |
void CTContentUpdateReceiver::DoSetInternalPriorityL()
|
sl@0
|
147 |
{
|
sl@0
|
148 |
RThread thread;
|
sl@0
|
149 |
User::LeaveIfError(thread.Open(iReceiverThreadId));
|
sl@0
|
150 |
thread.SetPriority(iInternalPriority);
|
sl@0
|
151 |
thread.Close();
|
sl@0
|
152 |
TInt compositionInterval = KCompositionInterval;
|
sl@0
|
153 |
CPeriodic::TPriority priority = CPeriodic::EPriorityStandard;
|
sl@0
|
154 |
if(iInternalPriority < EPriorityNormal)
|
sl@0
|
155 |
{
|
sl@0
|
156 |
priority = CPeriodic::EPriorityIdle;
|
sl@0
|
157 |
compositionInterval = KCompositionIntervalLong;
|
sl@0
|
158 |
}
|
sl@0
|
159 |
else if (iInternalPriority > EPriorityNormal)
|
sl@0
|
160 |
{
|
sl@0
|
161 |
priority = CPeriodic::EPriorityHigh;
|
sl@0
|
162 |
compositionInterval = KCompositionIntervalShort;
|
sl@0
|
163 |
}
|
sl@0
|
164 |
|
sl@0
|
165 |
TCallBack callback(CallBack);
|
sl@0
|
166 |
callback.iPtr = this;
|
sl@0
|
167 |
iPeriodic->Cancel();
|
sl@0
|
168 |
delete iPeriodic;
|
sl@0
|
169 |
iPeriodic= CPeriodic::NewL(priority);
|
sl@0
|
170 |
iPeriodic->Start(TTimeIntervalMicroSeconds32(compositionInterval),TTimeIntervalMicroSeconds32(compositionInterval), callback);
|
sl@0
|
171 |
iSetInternalPriority = EFalse;
|
sl@0
|
172 |
iPriorityLock.Signal();
|
sl@0
|
173 |
}
|
sl@0
|
174 |
|
sl@0
|
175 |
EXPORT_C TInt CTContentUpdateReceiver::SetInternalPriority(TThreadPriority aInternalPriority)
|
sl@0
|
176 |
{
|
sl@0
|
177 |
iLock.Wait();
|
sl@0
|
178 |
iInternalPriority = aInternalPriority;
|
sl@0
|
179 |
iSetInternalPriority = ETrue;
|
sl@0
|
180 |
iLock.Signal();
|
sl@0
|
181 |
|
sl@0
|
182 |
//wait for the priority changes takes place
|
sl@0
|
183 |
iPriorityLock.Wait();
|
sl@0
|
184 |
return KErrNone;
|
sl@0
|
185 |
}
|
sl@0
|
186 |
|
sl@0
|
187 |
void CTContentUpdateReceiver::ContentUpdated(const TSurfaceId& aId,
|
sl@0
|
188 |
TInt aBuffer,
|
sl@0
|
189 |
const TRegion* aRegion,
|
sl@0
|
190 |
TRequestStatus* aStatusAvailable,
|
sl@0
|
191 |
TRequestStatus* aStatusDisplayed, TUint32* aTimeStamp,
|
sl@0
|
192 |
TRequestStatus* aStatusDisplayedXTimes, TInt* aDisplayedXTimes)
|
sl@0
|
193 |
{
|
sl@0
|
194 |
(TAny)&aId;
|
sl@0
|
195 |
(TAny)aBuffer;
|
sl@0
|
196 |
(TAny)aRegion;
|
sl@0
|
197 |
|
sl@0
|
198 |
iLock.Wait();
|
sl@0
|
199 |
if(iStop)
|
sl@0
|
200 |
{
|
sl@0
|
201 |
if(aStatusAvailable)
|
sl@0
|
202 |
{
|
sl@0
|
203 |
User::RequestComplete(aStatusAvailable, KErrDied);
|
sl@0
|
204 |
}
|
sl@0
|
205 |
if(aStatusDisplayed)
|
sl@0
|
206 |
{
|
sl@0
|
207 |
User::RequestComplete(aStatusDisplayed, KErrDied);
|
sl@0
|
208 |
}
|
sl@0
|
209 |
if(aStatusDisplayedXTimes)
|
sl@0
|
210 |
{
|
sl@0
|
211 |
User::RequestComplete(aStatusDisplayedXTimes, KErrDied);
|
sl@0
|
212 |
}
|
sl@0
|
213 |
iLock.Signal();
|
sl@0
|
214 |
return;
|
sl@0
|
215 |
}
|
sl@0
|
216 |
|
sl@0
|
217 |
RThread thread;
|
sl@0
|
218 |
iThreadId = thread.Id();
|
sl@0
|
219 |
|
sl@0
|
220 |
if(aStatusAvailable)
|
sl@0
|
221 |
{
|
sl@0
|
222 |
Add(aStatusAvailable, EReqAvailable);
|
sl@0
|
223 |
}
|
sl@0
|
224 |
if(aStatusDisplayed)
|
sl@0
|
225 |
{
|
sl@0
|
226 |
Add(aStatusDisplayed, EReqDisplayed, 0, aTimeStamp);
|
sl@0
|
227 |
}
|
sl@0
|
228 |
if(aStatusDisplayedXTimes)
|
sl@0
|
229 |
{
|
sl@0
|
230 |
Add(aStatusDisplayedXTimes, EReqDisplayedXTimes, *aDisplayedXTimes);
|
sl@0
|
231 |
}
|
sl@0
|
232 |
iLock.Signal();
|
sl@0
|
233 |
}
|
sl@0
|
234 |
|
sl@0
|
235 |
/**
|
sl@0
|
236 |
Add notification to the list. The function is called from the SUS thread.
|
sl@0
|
237 |
The client of this API must use a lock mechanizm to preserve data integrity.
|
sl@0
|
238 |
*/
|
sl@0
|
239 |
TInt CTContentUpdateReceiver::Add(TRequestStatus *aStatus, RequestType aType,
|
sl@0
|
240 |
TInt aDisplayedXTimes, TUint32* aTimeStamp)
|
sl@0
|
241 |
{
|
sl@0
|
242 |
TInt index = iNumberElements;
|
sl@0
|
243 |
TInt max = sizeof(iArray) / sizeof(iArray[0]) - 1;
|
sl@0
|
244 |
if(index >= max)
|
sl@0
|
245 |
return KErrOverflow;
|
sl@0
|
246 |
|
sl@0
|
247 |
iArray[index].iStatus = aStatus;
|
sl@0
|
248 |
iArray[index].iType = aType;
|
sl@0
|
249 |
iArray[index].iDisplayedXTimes = aDisplayedXTimes;
|
sl@0
|
250 |
iArray[index].iTimeStamp = aTimeStamp;
|
sl@0
|
251 |
|
sl@0
|
252 |
iNumberElements++;
|
sl@0
|
253 |
return KErrNone;
|
sl@0
|
254 |
}
|
sl@0
|
255 |
|
sl@0
|
256 |
/**
|
sl@0
|
257 |
Remove notification from the list.
|
sl@0
|
258 |
The function is called from the backend thread.
|
sl@0
|
259 |
The client of this API must use a lock mechanizm to preserve data integrity.
|
sl@0
|
260 |
*/
|
sl@0
|
261 |
void CTContentUpdateReceiver::Remove(TInt aIndex)
|
sl@0
|
262 |
{
|
sl@0
|
263 |
TInt max = sizeof(iArray) / sizeof(iArray[0]) - 1;
|
sl@0
|
264 |
if((aIndex < 0) || (aIndex >= max))
|
sl@0
|
265 |
return;
|
sl@0
|
266 |
|
sl@0
|
267 |
iNumberElements--;
|
sl@0
|
268 |
if(aIndex < iNumberElements)
|
sl@0
|
269 |
{
|
sl@0
|
270 |
Mem::Move(&iArray[aIndex], &iArray[aIndex + 1], (iNumberElements - aIndex) * sizeof(RequestObject));
|
sl@0
|
271 |
iArray[iNumberElements].iType= EReqEmpty;
|
sl@0
|
272 |
}
|
sl@0
|
273 |
else
|
sl@0
|
274 |
{
|
sl@0
|
275 |
iArray[aIndex].iType = EReqEmpty;
|
sl@0
|
276 |
}
|
sl@0
|
277 |
}
|
sl@0
|
278 |
|
sl@0
|
279 |
TInt CTContentUpdateReceiver::ThreadFunction(TAny* aAny)
|
sl@0
|
280 |
{
|
sl@0
|
281 |
// get clean-up stack
|
sl@0
|
282 |
CTrapCleanup* cleanup=CTrapCleanup::New();
|
sl@0
|
283 |
RThread thread;
|
sl@0
|
284 |
_LIT(KTestReceiver, "TestReceiver");
|
sl@0
|
285 |
__ASSERT_ALWAYS(cleanup!=NULL, thread.Panic( KTestReceiver, KErrNoMemory));
|
sl@0
|
286 |
|
sl@0
|
287 |
// create an active scheduler and server
|
sl@0
|
288 |
CActiveScheduler *pA = new CActiveScheduler;
|
sl@0
|
289 |
__ASSERT_ALWAYS(pA != NULL, thread.Panic( KTestReceiver, KErrNoMemory));
|
sl@0
|
290 |
|
sl@0
|
291 |
//Install the active scheduler
|
sl@0
|
292 |
CActiveScheduler::Install(pA);
|
sl@0
|
293 |
|
sl@0
|
294 |
CTContentUpdateReceiver *pCB = NULL;
|
sl@0
|
295 |
TInt screen = * (static_cast <TInt*> (aAny));
|
sl@0
|
296 |
TRAPD(err, pCB = CTContentUpdateReceiver::NewL(screen));
|
sl@0
|
297 |
__ASSERT_ALWAYS(err == KErrNone, thread.Panic( KTestReceiver, err));
|
sl@0
|
298 |
|
sl@0
|
299 |
*(static_cast <CTContentUpdateReceiver**> (aAny)) = pCB;
|
sl@0
|
300 |
|
sl@0
|
301 |
// Let everyone know that we are ready to
|
sl@0
|
302 |
// deal with requests.
|
sl@0
|
303 |
RThread::Rendezvous(KErrNone);
|
sl@0
|
304 |
// And start fielding requests from client(s).
|
sl@0
|
305 |
CActiveScheduler::Start();
|
sl@0
|
306 |
|
sl@0
|
307 |
// Tidy up...
|
sl@0
|
308 |
delete pCB;
|
sl@0
|
309 |
delete pA;
|
sl@0
|
310 |
delete cleanup;
|
sl@0
|
311 |
|
sl@0
|
312 |
return KErrNone;
|
sl@0
|
313 |
}
|
sl@0
|
314 |
|
sl@0
|
315 |
_LIT(KMaskBackend, "CompositionBackend_%d");
|
sl@0
|
316 |
const TUint KDefaultHeapSize=0x10000;
|
sl@0
|
317 |
|
sl@0
|
318 |
EXPORT_C TInt StartTestUpdateReceiver(CTContentUpdateReceiver*& aReceiver, TInt aScreen)
|
sl@0
|
319 |
{
|
sl@0
|
320 |
RThread compositionThread;
|
sl@0
|
321 |
TInt res = KErrGeneral;
|
sl@0
|
322 |
TBuf<64> contentUpdateReceiverThreadName;
|
sl@0
|
323 |
TBuf<64> contentUpdateReceiverThreadMask;
|
sl@0
|
324 |
|
sl@0
|
325 |
// Guarantee uniqueness of thread name by using timestamp
|
sl@0
|
326 |
TTime tm;
|
sl@0
|
327 |
TBuf<32> timeStamp;
|
sl@0
|
328 |
tm.UniversalTime();
|
sl@0
|
329 |
TRAP(res, tm.FormatL(timeStamp, _L("_%H%T%S%C")));
|
sl@0
|
330 |
if(res != KErrNone)
|
sl@0
|
331 |
{
|
sl@0
|
332 |
return res;
|
sl@0
|
333 |
}
|
sl@0
|
334 |
|
sl@0
|
335 |
contentUpdateReceiverThreadName.Format(KMaskBackend, aScreen);
|
sl@0
|
336 |
contentUpdateReceiverThreadName.Append(timeStamp);
|
sl@0
|
337 |
contentUpdateReceiverThreadMask = contentUpdateReceiverThreadName;
|
sl@0
|
338 |
contentUpdateReceiverThreadMask.Insert(0, _L("*"));
|
sl@0
|
339 |
TFindThread findThread(contentUpdateReceiverThreadMask);
|
sl@0
|
340 |
TFullName name;
|
sl@0
|
341 |
// Need to check that the thread exists.
|
sl@0
|
342 |
if (findThread.Next(name)!=KErrNone)
|
sl@0
|
343 |
{
|
sl@0
|
344 |
aReceiver = reinterpret_cast <CTContentUpdateReceiver*> (aScreen);
|
sl@0
|
345 |
|
sl@0
|
346 |
// Create the thread for the server.
|
sl@0
|
347 |
res = compositionThread.Create(contentUpdateReceiverThreadName,
|
sl@0
|
348 |
CTContentUpdateReceiver::ThreadFunction,
|
sl@0
|
349 |
KDefaultStackSize,
|
sl@0
|
350 |
KDefaultHeapSize,
|
sl@0
|
351 |
KDefaultHeapSize,
|
sl@0
|
352 |
(TAny*) &aReceiver
|
sl@0
|
353 |
);
|
sl@0
|
354 |
|
sl@0
|
355 |
// The thread has been created OK so get it started - however
|
sl@0
|
356 |
// we need to make sure that it has started before we continue.
|
sl@0
|
357 |
if (res==KErrNone)
|
sl@0
|
358 |
{
|
sl@0
|
359 |
TRequestStatus rendezvousStatus;
|
sl@0
|
360 |
compositionThread.SetPriority(EPriorityNormal);
|
sl@0
|
361 |
compositionThread.Rendezvous(rendezvousStatus);
|
sl@0
|
362 |
compositionThread.Resume();
|
sl@0
|
363 |
User::WaitForRequest(rendezvousStatus);
|
sl@0
|
364 |
res = rendezvousStatus.Int();
|
sl@0
|
365 |
}
|
sl@0
|
366 |
}
|
sl@0
|
367 |
compositionThread.Close();
|
sl@0
|
368 |
return res;
|
sl@0
|
369 |
}
|
sl@0
|
370 |
|
sl@0
|
371 |
EXPORT_C void CloseTestUpdateReceiver(CTContentUpdateReceiver* aReceiver)
|
sl@0
|
372 |
{
|
sl@0
|
373 |
if(!aReceiver)
|
sl@0
|
374 |
return;
|
sl@0
|
375 |
|
sl@0
|
376 |
TBuf<64> contentUpdateReceiverThreadName;
|
sl@0
|
377 |
contentUpdateReceiverThreadName.Format(KMaskBackend, aReceiver->Screen());
|
sl@0
|
378 |
TBuf<64> contentUpdateReceiverThreadMask;
|
sl@0
|
379 |
contentUpdateReceiverThreadMask = contentUpdateReceiverThreadName;
|
sl@0
|
380 |
contentUpdateReceiverThreadMask.Insert(0, _L("*"));
|
sl@0
|
381 |
contentUpdateReceiverThreadMask.Append('*');
|
sl@0
|
382 |
TFindThread findThread(contentUpdateReceiverThreadMask);
|
sl@0
|
383 |
TFullName name;
|
sl@0
|
384 |
RThread thread;
|
sl@0
|
385 |
if((findThread.Next(name)!=KErrNone) ||
|
sl@0
|
386 |
(thread.Open(findThread) != KErrNone))
|
sl@0
|
387 |
{
|
sl@0
|
388 |
thread.Close();
|
sl@0
|
389 |
return;
|
sl@0
|
390 |
}
|
sl@0
|
391 |
TRequestStatus status;
|
sl@0
|
392 |
thread.Logon(status);
|
sl@0
|
393 |
if(aReceiver)
|
sl@0
|
394 |
aReceiver->Stop();
|
sl@0
|
395 |
User::WaitForRequest(status);
|
sl@0
|
396 |
thread.Close();
|
sl@0
|
397 |
}
|