equal
deleted
inserted
replaced
36 _LIT(KSwtDllName, "eswtqt.dll"); |
36 _LIT(KSwtDllName, "eswtqt.dll"); |
37 |
37 |
38 // Stack size for the UI thread, 0x14000 = 80kB |
38 // Stack size for the UI thread, 0x14000 = 80kB |
39 const TInt KSwtUiThreadStackSize = 0x14000; |
39 const TInt KSwtUiThreadStackSize = 0x14000; |
40 |
40 |
41 // Stack size for the support thread, 0x200 = 0.5kB |
41 // Stack size for the support thread, 0x1F40 = 8kB |
42 const TInt KSwtSupportThreadStackSize = 0x200; |
42 const TInt KSwtSupportThreadStackSize = 0x1F40; |
43 |
43 |
44 static const char* const EVENT_FILTER = "swt_event_filter"; |
44 static const char* const EVENT_FILTER = "swt_event_filter"; |
45 |
45 |
46 // Data stored to thread/dll specific Symbian thread local storage of the UI |
46 // Data stored to thread/dll specific Symbian thread local storage of the UI |
47 // thread. |
47 // thread. |
447 uiThread.Rendezvous(uiThreadRendezvous); |
447 uiThread.Rendezvous(uiThreadRendezvous); |
448 } |
448 } |
449 |
449 |
450 // Wait until the process dies. If the UI thread dies notify MIDP |
450 // Wait until the process dies. If the UI thread dies notify MIDP |
451 // application management software that the MIDlet should die. |
451 // application management software that the MIDlet should die. |
|
452 // This is a workaround until QTBUG-5284 is resolved. |
452 while(ETrue) |
453 while(ETrue) |
453 { |
454 { |
454 User::WaitForAnyRequest(); |
455 User::WaitForAnyRequest(); |
455 if(vm && openStatus == KErrNone) { |
456 if(vm && openStatus == KErrNone) { |
456 if(uiThread.ExitType() != EExitPending) |
457 if(uiThread.ExitType() != EExitPending) |