javaruntimes/midp/runtimestarter/src/midpruntimestarter.h
branchRCL_3
changeset 24 0fd27995241b
parent 19 04becd199f91
--- a/javaruntimes/midp/runtimestarter/src/midpruntimestarter.h	Fri Apr 30 10:40:48 2010 +0300
+++ b/javaruntimes/midp/runtimestarter/src/midpruntimestarter.h	Tue May 11 16:07:20 2010 +0300
@@ -280,6 +280,13 @@
 private: // Methods
 
     /**
+     * A thread entry point for a thread that ensure that the runtime process
+     * will be exited if something goes wrong in shutdown sequence.
+     * @param ptr A pointer to MidpRuntimeStarter.
+     */
+    static void* ensureExit(void* ptr);
+
+    /**
      * Parses the arguments provided by Java Captain when creating the
      * process. The argument interpretations are stored into a member variable
      * mMidletInfo for easy future access. Any Unknown argument
@@ -445,6 +452,11 @@
     std::auto_ptr<java::util::Monitor>              mMonitor;
 
     /**
+     * A lock for exit case.
+     */
+    std::auto_ptr<java::util::Monitor>              mExitMonitor;
+
+    /**
      * A library loader for push case.
      */
     std::auto_ptr<java::util::DynamicLibLoader>     mPushLib;
@@ -454,6 +466,11 @@
      */
     std::wstring                                    mPushAdditionalInfo;
 
+    /**
+     * Did the shutdown go ok.
+     */
+     bool                                           mShudownOk;
+
 };
 
 } // end namespace runtime