HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 #include "UT_Defines.h"
20 
22 {
23 public:
25  virtual ~UT_ChildProcessTracker();
26 
27  virtual void addNewChild(pid_t pid);
28  virtual bool pollChildren();
29 
30 protected:
31  int myNumPIDs;
32  pid_t *myPIDs;
33 };
34 
37 
38 #endif
#define UT_API
Definition: UT_API.h:12
UT_API void UTsetChildProcessTracker(UT_ChildProcessTracker *)
UT_API UT_ChildProcessTracker * UTgetChildProcessTracker()