From: Unsung Lee Date: Tue, 24 Sep 2024 05:10:56 +0000 (+0900) Subject: [Tizen.System.Resource] Update the description of APIs X-Git-Tag: submit/tizen/20240930.150935~1^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cadb71cc7ef6797b80b14d09191d7c559281e6fb;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Tizen.System.Resource] Update the description of APIs Update the description of Tizen.System.Resource APIs Signed-off-by: Unsung Lee --- diff --git a/src/Tizen.System.Resource/Resource/Resource.cs b/src/Tizen.System.Resource/Resource/Resource.cs index 8d4063b6b..99700d1c5 100644 --- a/src/Tizen.System.Resource/Resource/Resource.cs +++ b/src/Tizen.System.Resource/Resource/Resource.cs @@ -25,16 +25,27 @@ namespace Tizen.System [EditorBrowsable(EditorBrowsableState.Never)] public class Resource { - /// - /// Set cpu boosting for the target process (pid/tids). - /// - /// - /// http://tizen.org/privilege/internal/default/partner - /// - /// The target process pid/tids. - /// The cpu boosting level - /// The cpu boosting flag bits - /// The timeout in milliseconds + /// + /// Sets cpu boosting for the target process (pid/tids) to the desired level for as long as required. + /// + /// + /// 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. + /// + /// + /// http://tizen.org/privilege/internal/default/partner + /// + /// The target process pid/tids. + /// The cpu boosting level + /// The cpu boosting flag bits + /// The timeout in milliseconds + /// + /// + /// + /// + /// Resource.ResourceSetCpuBoosting(new ResourcePidInfo() { Pid = processInfo.Id }, CpuBoostingLevel.CpuBoostingLevelStrong, 0, -1); + /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void ResourceSetCpuBoosting (ResourcePidInfo pid, CpuBoostingLevel level, CpuBoostingFlag flags, int timeoutMsec) { @@ -45,13 +56,24 @@ namespace Tizen.System } } - /// - /// Clear cpu boosting for the boosted process (pid/tids). - /// - /// - /// http://tizen.org/privilege/internal/default/partner - /// - /// The target process pid/tids. + /// + /// Clears cpu boosting for the boosted process (pid/tids). + /// + /// + /// 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. + /// + /// + /// http://tizen.org/privilege/internal/default/partner + /// + /// The target process pid/tids. + /// + /// + /// + /// + /// Resource.ResourceClearCpuBoosting(new ResourcePidInfo() { Pid = processInfo.Id }); + /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void ResourceClearCpuBoosting (ResourcePidInfo pid) { @@ -62,14 +84,26 @@ namespace Tizen.System } } - /// - /// Get the cpu boosting level for the target process (pid/tids). - /// - /// - /// http://tizen.org/privilege/internal/default/partner - /// - /// The target process pid/tids. - /// The boosting level for the target process (pid/tids). + /// + /// Gets the cpu boosting level for the target process (pid/tids). + /// + /// + /// 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. + /// + /// + /// http://tizen.org/privilege/internal/default/partner + /// + /// The target process pid/tids. + /// The boosting level for the target process (pid/tids). + /// + /// + /// + /// + /// CpuBoostingLevelInfo level = new CpuBoostingLevelInfo(); + /// Resource.ResourceGetCpuBoostingLevel(new ResourcePidInfo() { Pid = processInfo.Id }, out level); + /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void ResourceGetCpuBoostingLevel (ResourcePidInfo pid, out CpuBoostingLevelInfo level) { @@ -85,15 +119,28 @@ namespace Tizen.System } } - /// - /// Set cpu resource inheritance from the source tid to the destination process (pid/tids). - /// - /// - /// http://tizen.org/privilege/internal/default/partner - /// - /// The caller thread tid. - /// The name of destination process. - /// The timeout in milliceconds. + /// + /// Sets cpu resource inheritance from the source tid to the destination process (pid/tids). + /// + /// + /// 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. + /// + /// + /// http://tizen.org/privilege/internal/default/partner + /// + /// The caller thread tid. + /// The name of destination process. + /// The timeout in milliceconds. + /// + /// + /// + /// + /// + /// Resource.ResourceSetCpuInheritance(0, "test-destination", 500); + /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void ResourceSetCpuInheritance (int sourceTid, string destProcess, int timeoutMsec) { @@ -104,14 +151,27 @@ namespace Tizen.System } } - /// - /// Clear cpu resource inheritance from the source tid to the destination process (pid/tids). - /// - /// - /// http://tizen.org/privilege/internal/default/partner - /// - /// The caller thread tid. - /// The name of destination process. + /// + /// Clears cpu resource inheritance from the source tid to the destination process (pid/tids). + /// + /// + /// 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. + /// + /// + /// http://tizen.org/privilege/internal/default/partner + /// + /// The caller thread tid. + /// The name of destination process. + /// + /// + /// + /// + /// + /// Resource.ResourceClearCpuInheritance(0, "test-destination"); + /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void ResourceClearCpuInheritance (int sourceTid, string destProcess) { @@ -122,14 +182,26 @@ namespace Tizen.System } } - /// - /// Register a destination process (pid/tids) for cpu resource inheritance. - /// - /// - /// http://tizen.org/privilege/internal/default/partner - /// - /// The name of destination process. - /// The destination process pid/tids. + /// + /// Registers a destination process (pid/tids) for cpu resource inheritance. + /// + /// + /// 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. + /// + /// + /// http://tizen.org/privilege/internal/default/partner + /// + /// The name of destination process. + /// The destination process pid/tids. + /// + /// + /// + /// + /// + /// Resource.ResourceRegisterCpuInheritanceDestination("test-destination", new ResourcePidInfo() { Pid = processInfo.Id }); + /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void ResourceRegisterCpuInheritanceDestination (string destProcess, ResourcePidInfo pid) { @@ -140,13 +212,25 @@ namespace Tizen.System } } - /// - /// Unregister a destination process (pid/tids) for cpu resource inheritance. - /// - /// - /// http://tizen.org/privilege/internal/default/partner - /// - /// The name of destination process. + /// + /// Unregisters a destination process (pid/tids) for cpu resource inheritance. + /// + /// + /// 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. + /// + /// + /// http://tizen.org/privilege/internal/default/partner + /// + /// The name of destination process. + /// + /// + /// + /// + /// + /// Resource.ResourceUnregisterCpuInheritanceDestination("test-destination"); + /// + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void ResourceUnregisterCpuInheritanceDestination (string destProcess) {