From: Hwankyu Jhun Date: Thu, 14 Mar 2024 02:21:31 +0000 (+0900) Subject: Remove mutex lock from SendLaunchRequest() X-Git-Tag: accepted/tizen/8.0/unified/20240320.143606~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccc5846d56d4120844adeca3882602dd4287a66f;p=platform%2Fcore%2Fapi%2Fapp-control.git Remove mutex lock from SendLaunchRequest() To reduce blocking section, this patch removes locking mutex from SendLaunchRequest() methods. Change-Id: I35d8e0d37329497ccbc51e26ebac1650080c0b68 Signed-off-by: Hwankyu Jhun --- diff --git a/src/app-control/app_control_broker.cc b/src/app-control/app_control_broker.cc index 10f1fbe..25a60ff 100644 --- a/src/app-control/app_control_broker.cc +++ b/src/app-control/app_control_broker.cc @@ -318,7 +318,6 @@ void AppControlBroker::CopyCalleeInfo(AppControl* dst, AppControl* src) { void AppControlBroker::SendLaunchRequest(AppControl* app_control, std::shared_ptr context) { - std::lock_guard 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 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 context) { - std::lock_guard lock(GetRecMutex()); try { std::string app_id = app_control->GetAppId(); } catch (Exception& e) {