Class Resource
Definition
- Namespace:
- Tizen.System
- Assembly:
- Tizen.System.Resource.dll
Provides methods to support CPU boosting and CPU inheritance.
C#Copypublic class Resource : object
- Inheritance
-
Resource
Methods
ResourceClearCpuBoosting(ResourcePidInfo)
Clear cpu boosting for the boosted process (pid/tids).
Declaration
C#Copypublic static void ResourceClearCpuBoosting(ResourcePidInfo pid)
Parameters
Type | Name | Description |
---|---|---|
ResourcePidInfo | pid | The target process pid/tids. |
Privilege Level: public
Privilege: http://tizen.org/privilege/internal/default/partner
ResourceClearCpuInheritance(Int32, String)
Clear cpu resource inheritance from the source tid to the destination process (pid/tids).
Declaration
C#Copypublic static void ResourceClearCpuInheritance(int sourceTid, string destProcess)
Parameters
Type | Name | Description |
---|---|---|
Int32 | sourceTid | The caller thread tid. |
String | destProcess | The name of destination process. |
Privilege Level: public
Privilege: http://tizen.org/privilege/internal/default/partner
ResourceGetCpuBoostingLevel(ResourcePidInfo, out CpuBoostingLevelInfo)
Get the cpu boosting level for the target process (pid/tids).
Declaration
C#Copypublic 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). |
Privilege Level: public
Privilege: http://tizen.org/privilege/internal/default/partner
ResourceRegisterCpuInheritanceDestination(String, ResourcePidInfo)
Register a destination process (pid/tids) for cpu resource inheritance.
Declaration
C#Copypublic 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. |
Privilege Level: public
Privilege: http://tizen.org/privilege/internal/default/partner
ResourceSetCpuBoosting(ResourcePidInfo, CpuBoostingLevel, CpuBoostingFlag, Int32)
Set cpu boosting for the target process (pid/tids).
Declaration
C#Copypublic 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 |
Int32 | timeoutMsec | The timeout in milliseconds |
Privilege Level: public
Privilege: http://tizen.org/privilege/internal/default/partner
ResourceSetCpuInheritance(Int32, String, Int32)
Set cpu resource inheritance from the source tid to the destination process (pid/tids).
Declaration
C#Copypublic static void ResourceSetCpuInheritance(int sourceTid, string destProcess, int timeoutMsec)
Parameters
Type | Name | Description |
---|---|---|
Int32 | sourceTid | The caller thread tid. |
String | destProcess | The name of destination process. |
Int32 | timeoutMsec | The timeout in milliceconds. |
Privilege Level: public
Privilege: http://tizen.org/privilege/internal/default/partner
ResourceUnregisterCpuInheritanceDestination(String)
Unregister a destination process (pid/tids) for cpu resource inheritance.
Declaration
C#Copypublic static void ResourceUnregisterCpuInheritanceDestination(string destProcess)
Parameters
Type | Name | Description |
---|---|---|
String | destProcess | The name of destination process. |