javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/library/swts60.cpp
changeset 35 85266cc22c7f
parent 26 dc7c549001d5
child 48 e0d6e9bd3ca7
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
    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)