HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PDG_SchedulerUtils.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  * COMMENTS:
7  */
8 
9 #ifndef __PDG_SCHEDULERUTILS_H__
10 #define __PDG_SCHEDULERUTILS_H__
11 
12 #include "PDG_API.h"
13 
14 #include <UT/UT_StringMap.h>
15 
17 {
18 public:
19  /// Returns the number of logical cores available
20  static int maxThreads();
22  getDefaultUserEnvironment();
23  /// Helper functions for local-schedulers - execute in child process
24  /// before exec (Posix only)
25  static void preExecProcess();
26  /// Helper function for local-schedulers - adds new process to parent Job
27  static void postExecProcess(uint64 pid);
28 };
29 
30 #endif //__PDG_SCHEDULERUTILS_H__
#define PDG_API
Definition: PDG_API.h:23
unsigned long long uint64
Definition: SYS_Types.h:117