Remove mutex lock from SendLaunchRequest() 72/307872/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 14 Mar 2024 02:21:31 +0000 (11:21 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 14 Mar 2024 02:21:31 +0000 (11:21 +0900)
To reduce blocking section, this patch removes locking mutex from
SendLaunchRequest() methods.

Change-Id: I35d8e0d37329497ccbc51e26ebac1650080c0b68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/app-control/app_control_broker.cc

index 10f1fbe270977493e4823e71a9286997b58285e7..25a60ff8d1dcbd2ee6af4d7bc03ebaea5f76fd50 100644 (file)
@@ -318,7 +318,6 @@ void AppControlBroker::CopyCalleeInfo(AppControl* dst, AppControl* src) {
 
 void AppControlBroker::SendLaunchRequest(AppControl* app_control,
     std::shared_ptr<RequestContext> context) {
-  std::lock_guard<std::recursive_mutex> lock(GetRecMutex());
   int ret = CheckAppControl(app_control);
   if (ret != APP_CONTROL_ERROR_NONE)
     THROW(ret);
@@ -367,7 +366,6 @@ void AppControlBroker::SendLaunchRequest(AppControl* app_control,
 
 void AppControlBroker::SendLaunchRequest(AppControl* app_control,
     AppControl** reply, app_control_result_e* result) {
-  std::lock_guard<std::recursive_mutex> lock(GetRecMutex());
   int ret = CheckAppControl(app_control);
   if (ret != APP_CONTROL_ERROR_NONE)
     THROW(ret);
@@ -395,7 +393,6 @@ void AppControlBroker::SendLaunchRequest(AppControl* app_control,
 
 void AppControlBroker::SendResumeRequest(AppControl* app_control,
     std::shared_ptr<RequestContext> context) {
-  std::lock_guard<std::recursive_mutex> lock(GetRecMutex());
   try {
     std::string app_id = app_control->GetAppId();
   } catch (Exception& e) {