singleton.h 720 B

12345678910111213141516171819202122
  1. // singleton.h :
  2. //
  3. #if !defined(AGD_SINGLETON_H__19298C2E_564D_4BA5_82FE_3D5C9A705C55__INCLUDED_)
  4. #define AGD_SINGLETON_H__19298C2E_564D_4BA5_82FE_3D5C9A705C55__INCLUDED_
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif // __cplusplus
  8. /////////////////////////////////////////////////////////////////////////////
  9. // singleton.h - Declarations:
  10. int AcquirePidFileLock(const char *pszProcessName, const char *pszPidFile);
  11. void ReleasePidFileLock(void);
  12. int GetPidFilePID(const char *pszPidFile);
  13. /////////////////////////////////////////////////////////////////////////////
  14. #ifdef __cplusplus
  15. }
  16. #endif // __cplusplus
  17. #endif // !defined(AGD_SINGLETON_H__19298C2E_564D_4BA5_82FE_3D5C9A705C55__INCLUDED_)