HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ChildProcessTracker.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_ChildProcessTracker.h ( UT Library, C++)
7  *
8  * COMMENTS:
9  * For child processes that have an indeterminant exit time (like a
10  * spawned viewer), this class will periodically do a non-blocking wait on
11  * them.
12  *
13  */
14 #ifndef UT_CHILD_PROCESS_TRACKER_H
15 #define UT_CHILD_PROCESS_TRACKER_H
16 
17 #include "UT_API.h"
18 #include <SYS/SYS_Types.h>
19 
21 {
22 public:
24  virtual ~UT_ChildProcessTracker();
25 
28 
29  virtual void addNewChild(pid_t pid);
30  virtual bool pollChildren();
31 
32 protected:
33  int myNumPIDs;
34  pid_t *myPIDs;
35 };
36 
39 
40 #endif
#define UT_API
Definition: UT_API.h:14
UT_API void UTsetChildProcessTracker(UT_ChildProcessTracker *)
LeafData & operator=(const LeafData &)=delete
UT_API UT_ChildProcessTracker * UTgetChildProcessTracker()