diff options
author | VladSemenyuk <VSemenyuk@luxoft.com> | 2021-08-27 22:36:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-27 15:36:43 -0400 |
commit | b9a2a53cca954b710ed5b25ba91d3267cc2996fd (patch) | |
tree | 3134bbc7db30e32f5ab9ee9fbfbe130268d11d0c /src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/sdl_activate_app_request.cc | |
parent | 2fc754452eac4e08e4919245742cd4dfb945a3d8 (diff) | |
download | sdl_core-b9a2a53cca954b710ed5b25ba91d3267cc2996fd.tar.gz |
Fix/ccb 3141 change command request inheritance structure (#3591)
* Change command request inheritance structure.
Fix data races during requests event processing.
* Change commands according to new inheritance structure.
* Change unit tests according new inheritance structure.
* Fix review comments
* Fix build after merge
* Fix format style
* Fix recursion in SetGlobalProperties
* Add delay before request releasing
That gives to event dispatcher some time to figure
out that event should not be rasied for a finalized request
and this request will be released soon. Also, this allows
to avoid calling some virtual functions on pointer to
invalidated object.
* Fix data races in EventDispatcher
Now reference counter is increased indirectly
by event dispatcher before calling `HandleOnEvent()`
of specific observer.
This will guarantee that during `HandleOnEvent` the
command object is still be alive.
* Revert changes for SetGlobalProperties
Co-authored-by: v-seme12 <vsemenyuk@kiev.luxoft.com>
Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/sdl_activate_app_request.cc')
-rw-r--r-- | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/sdl_activate_app_request.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/sdl_activate_app_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/sdl_activate_app_request.cc index 4de8b17b8d..a8b34bf2d4 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/sdl_activate_app_request.cc +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/sdl_activate_app_request.cc @@ -272,7 +272,7 @@ void SDLActivateAppRequest::Run() { } #endif // EXTERNAL_PROPRIETARY_MODE -void SDLActivateAppRequest::onTimeOut() { +void SDLActivateAppRequest::OnTimeOut() { using namespace hmi_apis::FunctionID; using namespace hmi_apis::Common_Result; using namespace application_manager; |