javaruntimes/midp/runtimestarter/src/midpruntimestarter.h
changeset 23 98ccebc37403
parent 21 2a9601315dfc
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
   278     };
   278     };
   279 
   279 
   280 private: // Methods
   280 private: // Methods
   281 
   281 
   282     /**
   282     /**
       
   283      * A thread entry point for a thread that ensure that the runtime process
       
   284      * will be exited if something goes wrong in shutdown sequence.
       
   285      * @param ptr A pointer to MidpRuntimeStarter.
       
   286      */
       
   287     static void* ensureExit(void* ptr);
       
   288 
       
   289     /**
   283      * Parses the arguments provided by Java Captain when creating the
   290      * Parses the arguments provided by Java Captain when creating the
   284      * process. The argument interpretations are stored into a member variable
   291      * process. The argument interpretations are stored into a member variable
   285      * mMidletInfo for easy future access. Any Unknown argument
   292      * mMidletInfo for easy future access. Any Unknown argument
   286      * will lead to throwing java::runtime::RuntimeException.
   293      * will lead to throwing java::runtime::RuntimeException.
   287      * @param argc Count of the arguments.
   294      * @param argc Count of the arguments.
   443      * A lock for push wait case.
   450      * A lock for push wait case.
   444      */
   451      */
   445     std::auto_ptr<java::util::Monitor>              mMonitor;
   452     std::auto_ptr<java::util::Monitor>              mMonitor;
   446 
   453 
   447     /**
   454     /**
       
   455      * A lock for exit case.
       
   456      */
       
   457     std::auto_ptr<java::util::Monitor>              mExitMonitor;
       
   458 
       
   459     /**
   448      * A library loader for push case.
   460      * A library loader for push case.
   449      */
   461      */
   450     std::auto_ptr<java::util::DynamicLibLoader>     mPushLib;
   462     std::auto_ptr<java::util::DynamicLibLoader>     mPushLib;
   451 
   463 
   452     /**
   464     /**
   453      * Utility for making methods thread safe.
   465      * Utility for making methods thread safe.
   454      */
   466      */
   455     std::wstring                                    mPushAdditionalInfo;
   467     std::wstring                                    mPushAdditionalInfo;
       
   468 
       
   469     /**
       
   470      * Did the shutdown go ok.
       
   471      */
       
   472      bool                                           mShudownOk;
   456 
   473 
   457 };
   474 };
   458 
   475 
   459 } // end namespace runtime
   476 } // end namespace runtime
   460 } // end namespace java
   477 } // end namespace java