Class Resource

    Definition

    Namespace:
    Tizen.System
    Assembly:
    Tizen.System.Resource.dll

    Provides methods to support CPU boosting and CPU inheritance.

    public class Resource
    Inheritance
    object
    Resource

    Methods

    View Source

    ResourceClearCpuBoosting(ResourcePidInfo)

    Clears 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.

    Remarks

    An internal API, so it can be used only by partner level developers. In addition, the developers cannot arbitrary choose whether to enforce this privilege or not.

    Examples
    Resource.ResourceClearCpuBoosting(new ResourcePidInfo() { Pid = processInfo.Id });
    See Also
    ResourceSetCpuBoosting(ResourcePidInfo, CpuBoostingLevel, CpuBoostingFlag, int)
    View Source

    ResourceClearCpuInheritance(int, string)

    Clears 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.

    Remarks

    An internal API, so it can be used only by partner level developers. In addition, the developers cannot arbitrary choose whether to enforce this privilege or not. It should be called from source after calling the resource_register_cpu_inheritance_destination() function in the destination.

    Examples
    Resource.ResourceClearCpuInheritance(0, "test-destination");
    See Also
    ResourceSetCpuInheritance(int, string, int)
    ResourceRegisterCpuInheritanceDestination(string, ResourcePidInfo)
    ResourceUnregisterCpuInheritanceDestination(string)
    View Source

    ResourceGetCpuBoostingLevel(ResourcePidInfo, out CpuBoostingLevelInfo)

    Gets 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).

    Remarks

    An internal API, so it can be used only by partner level developers. In addition, the developers cannot arbitrary choose whether to enforce this privilege or not.

    Examples
    CpuBoostingLevelInfo level = new CpuBoostingLevelInfo();
    Resource.ResourceGetCpuBoostingLevel(new ResourcePidInfo() { Pid = processInfo.Id }, out level);
    See Also
    ResourceSetCpuBoosting(ResourcePidInfo, CpuBoostingLevel, CpuBoostingFlag, int)
    ResourceClearCpuBoosting(ResourcePidInfo)
    View Source

    ResourceRegisterCpuInheritanceDestination(string, ResourcePidInfo)

    Registers 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.

    Remarks

    An internal API, so it can be used only by partner level developers. In addition, the developers cannot arbitrary choose whether to enforce this privilege or not.

    Examples
    Resource.ResourceRegisterCpuInheritanceDestination("test-destination", new ResourcePidInfo() { Pid = processInfo.Id });
    See Also
    ResourceSetCpuInheritance(int, string, int)
    ResourceClearCpuInheritance(int, string)
    ResourceUnregisterCpuInheritanceDestination(string)
    View Source

    ResourceSetCpuBoosting(ResourcePidInfo, CpuBoostingLevel, CpuBoostingFlag, int)

    Sets cpu boosting for the target process (pid/tids) to the desired level for as long as required.

    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

    Remarks

    An internal API, so it can be used only by partner level developers. In addition, the developers cannot arbitrary choose whether to enforce this privilege or not.

    Examples
    Resource.ResourceSetCpuBoosting(new ResourcePidInfo() { Pid = processInfo.Id }, CpuBoostingLevel.CpuBoostingLevelStrong, 0, -1);
    See Also
    ResourceClearCpuBoosting(ResourcePidInfo)
    View Source

    ResourceSetCpuInheritance(int, string, int)

    Sets 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.

    Remarks

    An internal API, so it can be used only by partner level developers. In addition, the developers cannot arbitrary choose whether to enforce this privilege or not. It should be called from source after calling the resource_register_cpu_inheritance_destination() function in the destination.

    Examples
    Resource.ResourceSetCpuInheritance(0, "test-destination", 500);
    See Also
    ResourceClearCpuInheritance(int, string)
    ResourceRegisterCpuInheritanceDestination(string, ResourcePidInfo)
    ResourceUnregisterCpuInheritanceDestination(string)
    View Source

    ResourceUnregisterCpuInheritanceDestination(string)

    Unregisters 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.

    Remarks

    An internal API, so it can be used only by partner level developers. In addition, the developers cannot arbitrary choose whether to enforce this privilege or not.

    Examples
    Resource.ResourceUnregisterCpuInheritanceDestination("test-destination");
    See Also
    ResourceSetCpuInheritance(int, string, int)
    ResourceClearCpuInheritance(int, string)
    ResourceRegisterCpuInheritanceDestination(string, ResourcePidInfo)

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX