equal
deleted
inserted
replaced
|
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32test\misc\t_death.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 #include <e32svr.h> |
|
19 |
|
20 GLDEF_C TInt E32Main() |
|
21 { |
|
22 RThread().SetPriority(EPriorityAbsoluteHigh); |
|
23 RUndertaker u; |
|
24 TInt r=u.Create(); |
|
25 if (r!=KErrNone) |
|
26 User::Panic(_L("T_DEATH 0"),r); |
|
27 // RThread().SetSystem(ETrue); |
|
28 FOREVER |
|
29 { |
|
30 TRequestStatus s; |
|
31 TInt h; |
|
32 u.Logon(s,h); |
|
33 User::WaitForRequest(s); |
|
34 RThread t; |
|
35 t.SetHandle(h); |
|
36 TFullName fn=t.FullName(); |
|
37 TExitType exit=t.ExitType(); |
|
38 TBuf<32> exitCat; |
|
39 exitCat=t.ExitCategory(); |
|
40 TInt exitReason=t.ExitReason(); |
|
41 RDebug::Print(_L("Thread %S Exited %d,%d,%S"),&fn,exit,exitReason,&exitCat); |
|
42 // if (exit==EExitPanic) |
|
43 // { |
|
44 // *(TInt*)0xdead0000=0; |
|
45 // } |
|
46 t.Close(); |
|
47 } |
|
48 } |