You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __START_PROC_KERNEL_HEADER__
  2. #define __START_PROC_KERNEL_HEADER__
  3. #include "../../lib/components/base/basicThread.h"
  4. #include "../../lib/components/base/basicSettingsProvider.h"
  5. class SP_KERNEL: public basicThread {
  6. protected:
  7. virtual void m_fThreadProc( void );
  8. public:
  9. static SP_KERNEL * getInstance( bool ColdStart = true );
  10. bool create(void);
  11. int getExitCause(){ return 0; };
  12. void WaitFinish( bool force );
  13. void setPID( pid_t NP );
  14. ~SP_KERNEL();
  15. private:
  16. static SP_KERNEL * _instance;
  17. SP_KERNEL();
  18. basicLogCollection * m_pLog;
  19. config_setting_t * m_pSettings;
  20. char m_pTargetPIDFile[PATH_MAX];
  21. char m_pTargetAppFile[PATH_MAX];
  22. char m_pTargetEnvPath[PATH_MAX];
  23. pid_t m_TargetPID;
  24. bool startTargetApplication( void );
  25. };
  26. #endif