equal
deleted
inserted
replaced
59 TInt LoopThread(TAny*) |
59 TInt LoopThread(TAny*) |
60 { |
60 { |
61 // Open handle on dynamic DLL in this thread |
61 // Open handle on dynamic DLL in this thread |
62 RLibrary library; |
62 RLibrary library; |
63 test_KErrNone(library.Load(KDynamicDll)); |
63 test_KErrNone(library.Load(KDynamicDll)); |
|
64 RThread().Rendezvous(KErrNone); |
64 for (;;) |
65 for (;;) |
65 ; |
66 ; |
66 } |
67 } |
67 |
68 |
68 TInt ChildThread(TAny* aArg) |
69 TInt ChildThread(TAny* aArg) |
248 |
249 |
249 case ETestOtherThreadRunning: |
250 case ETestOtherThreadRunning: |
250 { |
251 { |
251 RThread childThread; |
252 RThread childThread; |
252 test_KErrNone(childThread.Create(_L("ChildThread"), LoopThread, 4096, NULL, (TAny*)type)); |
253 test_KErrNone(childThread.Create(_L("ChildThread"), LoopThread, 4096, NULL, (TAny*)type)); |
253 childThread.Resume(); |
254 TRequestStatus status; |
|
255 childThread.Rendezvous(status); |
|
256 childThread.Resume(); |
|
257 User::WaitForRequest(status); |
|
258 test_KErrNone(status.Int()); |
254 childThread.Close(); |
259 childThread.Close(); |
255 test_KErrNone(messageQueue.Send(EMessagePreDestruct)); |
260 test_KErrNone(messageQueue.Send(EMessagePreDestruct)); |
256 } |
261 } |
257 return type; |
262 return type; |
258 |
263 |