Apply cpu priority inheritance
[platform/core/appfw/pkgmgr-info.git] / src / client / pkginfo_client.hh
index d874e8c..67d50d0 100644 (file)
@@ -15,6 +15,17 @@ namespace pkgmgr_client {
 
 class PkgInfoClient {
  public:
+  class CPUInheritanceInvoker {
+   public:
+    CPUInheritanceInvoker();
+    ~CPUInheritanceInvoker();
+    void SetCPUInheritance();
+    void ClearCPUInheritance();
+
+   private:
+    bool set_complete_;
+  };
+
   PkgInfoClient(
       std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> parcel,
       uid_t uid, pkgmgr_common::ReqType req_type);
@@ -23,7 +34,7 @@ class PkgInfoClient {
   std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> GetResultParcel();
 
  private:
-  bool RequestHandlerDirectAccess();
+  bool RequestHandlerDirectAccess(const std::vector<uint8_t>& raw);
 
   std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> parcel_;
   std::shared_ptr<pkgmgr_common::parcel::AbstractParcelable> result_parcel_;
@@ -31,6 +42,7 @@ class PkgInfoClient {
   uid_t uid_;
   pkgmgr_common::ReqType req_type_;
   bool is_offline_;
+  CPUInheritanceInvoker cpu_inheritance_invoker_;
 };
 
 }  // namespace pkgmgr_client