Class Resource
Definition
- Assembly:
- Tizen.System.Resource.dll
Provides methods to support CPU boosting and CPU inheritance.
public class Resource
- Inheritance
-
objectResource
Methods
View SourceResourceClearCpuBoosting(ResourcePidInfo)
Clear cpu boosting for the boosted process (pid/tids).
Declaration
public static void ResourceClearCpuBoosting(ResourcePidInfo pid)
Parameters
Type | Name | Description |
---|---|---|
ResourcePidInfo | pid | The target process pid/tids. |
ResourceClearCpuInheritance(int, string)
Clear cpu resource inheritance from the source tid to the destination process (pid/tids).
Declaration
public static void ResourceClearCpuInheritance(int sourceTid, string destProcess)
Parameters
Type | Name | Description |
---|---|---|
int | sourceTid | The caller thread tid. |
string | destProcess | The name of destination process. |
ResourceGetCpuBoostingLevel(ResourcePidInfo, out CpuBoostingLevelInfo)
Get the cpu boosting level for the target process (pid/tids).
Declaration
public static void ResourceGetCpuBoostingLevel(ResourcePidInfo pid, out CpuBoostingLevelInfo level)
Parameters
Type | Name | Description |
---|---|---|
ResourcePidInfo | pid | The target process pid/tids. |
CpuBoostingLevelInfo | level | The boosting level for the target process (pid/tids). |
ResourceRegisterCpuInheritanceDestination(string, ResourcePidInfo)
Register a destination process (pid/tids) for cpu resource inheritance.
Declaration
public static void ResourceRegisterCpuInheritanceDestination(string destProcess, ResourcePidInfo pid)
Parameters
Type | Name | Description |
---|---|---|
string | destProcess | The name of destination process. |
ResourcePidInfo | pid | The destination process pid/tids. |
ResourceSetCpuBoosting(ResourcePidInfo, CpuBoostingLevel, CpuBoostingFlag, int)
Set cpu boosting for the target process (pid/tids).
Declaration
public static void ResourceSetCpuBoosting(ResourcePidInfo pid, CpuBoostingLevel level, CpuBoostingFlag flags, int timeoutMsec)
Parameters
Type | Name | Description |
---|---|---|
ResourcePidInfo | pid | The target process pid/tids. |
CpuBoostingLevel | level | The cpu boosting level |
CpuBoostingFlag | flags | The cpu boosting flag bits |
int | timeoutMsec | The timeout in milliseconds |
ResourceSetCpuInheritance(int, string, int)
Set cpu resource inheritance from the source tid to the destination process (pid/tids).
Declaration
public static void ResourceSetCpuInheritance(int sourceTid, string destProcess, int timeoutMsec)
Parameters
Type | Name | Description |
---|---|---|
int | sourceTid | The caller thread tid. |
string | destProcess | The name of destination process. |
int | timeoutMsec | The timeout in milliceconds. |
ResourceUnregisterCpuInheritanceDestination(string)
Unregister a destination process (pid/tids) for cpu resource inheritance.
Declaration
public static void ResourceUnregisterCpuInheritanceDestination(string destProcess)
Parameters
Type | Name | Description |
---|---|---|
string | destProcess | The name of destination process. |