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 #include "PDG_SchedulerTypes.h"
14 
15 #include <UT/UT_StringMap.h>
16 
18 {
19 public:
20  /// Returns the number of logical cores available
21  static int maxThreads();
22 
23  /// Returns the current platform as a PDG_Platform enum value
24  static PDG_Platform platform();
25 
26  /// Returns the
28  getDefaultUserEnvironment();
29 
30  /// Helper functions for local-schedulers - execute in child process
31  /// before exec (Posix only)
32  static void preExecProcess();
33 
34  /// Helper function for local-schedulers - adds new process to parent Job
35  static void postExecProcess(uint64 pid);
36 };
37 
38 #endif //__PDG_SCHEDULERUTILS_H__
#define PDG_API
Definition: PDG_API.h:23
unsigned long long uint64
Definition: SYS_Types.h:117
PDG_Platform
Enumeration of supported platforms, for work item command line array.