HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
17
class
PDG_API
PDG_SchedulerUtils
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
27
static
UT_StringMap<UT_StringHolder>
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__
UT_StringMap< UT_StringHolder >
PDG_API
#define PDG_API
Definition:
PDG_API.h:23
uint64
unsigned long long uint64
Definition:
SYS_Types.h:117
PDG_Platform
PDG_Platform
Enumeration of supported platforms, for work item command line array.
Definition:
PDG_SchedulerTypes.h:26
PDG_API.h
PDG_SchedulerUtils
Definition:
PDG_SchedulerUtils.h:17
PDG_SchedulerTypes.h
UT_StringMap.h
PDG
PDG_SchedulerUtils.h
Generated on Mon Aug 24 2026 02:26:33 for HDK by
1.8.6