hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ProcessHandle.hpp
Go to the documentation of this file.
1 
14 #ifndef PROCESS_HANDLE_HPP
15 #define PROCESS_HANDLE_HPP
16 
17 #include <unistd.h>
18 #include <functional>
19 
20 namespace HCE
21 {
22 //-----------------------------------------------------------------------------
24 {
25 public:
26  explicit ProcessHandle(pid_t pid_) : pid(pid_) {}
27  ProcessHandle(const ProcessHandle& handle);
29 
30  ProcessHandle& operator=(const ProcessHandle& handle);
31  pid_t id(void) const {return pid;}
32  int wait(void) const;
33 
34 private:
35  pid_t pid;
36 };
37 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
39 } // end namespace HCE
40 
41 #endif // PROCESS_HANDLE_HPP