RaftLib  0.3a
C++ Stream Processing Template Library
procwait.hpp
1 
6 #ifndef _PROCWAIT_HPP_
7 #define _PROCWAIT_HPP_ 1
8 
9 #include <cstdint>
10 #include <vector>
11 #include <unistd.h>
12 
13 class ProcWait{
14 public:
15  ProcWait( const int64_t num_processes );
16 
17  virtual ~ProcWait();
18 
19  /* AddProcess - register a process to wait for */
20  void AddProcess( pid_t process );
21  /* WaitForChildren - blocks until all children are
22  * fully exited
23  */
24  void WaitForChildren();
25 
26 private:
27  std::vector< pid_t > proc_list;
28 };
29 
30 #endif /* END _PROCWAIT_HPP_ */
ProcWait(const int64_t num_processes)
Definition: procwait.cpp:21
Definition: procwait.hpp:13