--- a/javaruntimes/midp/runtimestarter/src/midpruntimestarter.h Mon May 03 12:27:20 2010 +0300
+++ b/javaruntimes/midp/runtimestarter/src/midpruntimestarter.h Fri May 14 15:47:24 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