Subversion Repositories public

Rev

Rev 71 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71 Rev 73
Line 113... Line 113...
113
   * \param[in] iSigNo signal number
113
   * \param[in] iSigNo signal number
114
   * \return true = success, false = otherwise
114
   * \return true = success, false = otherwise
115
   */
115
   */
116
  bool SendSignal(int iSigNo) const;
116
  bool SendSignal(int iSigNo) const;
117
 
117
 
-
 
118
  /// Terminates an instance of this application.
-
 
119
  /**
-
 
120
   * This method doesn't terminate the current instance.
-
 
121
   *
-
 
122
   * \return true = success, false = otherwise
-
 
123
   */
-
 
124
  inline bool Terminate() const
-
 
125
  {
-
 
126
    return SendSignal(SIGTERM);
-
 
127
  }
-
 
128
 
118
protected:
129
protected:
119
  bool DoLock();
130
  bool DoLock();
120
 
131
 
121
private:
132
private:
122
  std::string m_path;
133
  std::string m_path; ///< lock path
123
  bool m_fLocked;
134
  bool m_fLocked;     ///< locked yes/no
124
};
135
};
125
136
126
#endif /*APPINST_H_*/
137
#endif /*APPINST_H_*/