summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/commands/mobile/create_interaction_choice_set_request.h
diff options
context:
space:
mode:
authorArtem Nosach <ANosach@luxoft.com>2015-05-19 19:07:26 +0300
committerArtem Nosach <ANosach@luxoft.com>2015-06-23 17:07:21 +0300
commite03769c950d8cd9071855cee7c7505eac0f43e2f (patch)
tree044ccfe9d26c95860173ff128034c4cf06357970 /src/components/application_manager/include/application_manager/commands/mobile/create_interaction_choice_set_request.h
parent8ef1a21ceab0a9520edce3f446643fb293cee326 (diff)
downloadsdl_core-e03769c950d8cd9071855cee7c7505eac0f43e2f.tar.gz
Update CreateInteractionRequest timeout after each VRAddCommandResponse.
Diffstat (limited to 'src/components/application_manager/include/application_manager/commands/mobile/create_interaction_choice_set_request.h')
-rw-r--r--src/components/application_manager/include/application_manager/commands/mobile/create_interaction_choice_set_request.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/components/application_manager/include/application_manager/commands/mobile/create_interaction_choice_set_request.h b/src/components/application_manager/include/application_manager/commands/mobile/create_interaction_choice_set_request.h
index 53cbe5fdc1..615416fac5 100644
--- a/src/components/application_manager/include/application_manager/commands/mobile/create_interaction_choice_set_request.h
+++ b/src/components/application_manager/include/application_manager/commands/mobile/create_interaction_choice_set_request.h
@@ -91,9 +91,9 @@ class CreateInteractionChoiceSetRequest : public CommandRequestImpl {
void DeleteChoices();
/**
- * @brief OnAllHMIResponsesReceived If HMI returnes some errors, delete
- * choices.
- * Delete self from request controller
+ * @brief Calls after all responses from HMI were received.
+ * Terminates request and sends successful response to mobile
+ * if all responses were SUCCESS or calls DeleteChoices in other case.
*/
void OnAllHMIResponsesReceived();
@@ -116,14 +116,21 @@ class CreateInteractionChoiceSetRequest : public CommandRequestImpl {
int32_t choice_set_id_;
size_t expected_chs_count_;
- size_t recived_chs_count_;
-
+ size_t received_chs_count_;
/**
* @brief Flag for stop sending VR commands to HMI, in case one of responses
* failed
*/
volatile bool error_from_hmi_;
+ sync_primitives::Lock error_from_hmi_lock_;
+
+ /**
+ * @brief Flag shows if request already was expired by timeout
+ */
+ volatile bool is_timed_out_;
+ sync_primitives::Lock is_timed_out_lock_;
+
sync_primitives::Lock vr_commands_lock_;
/*
* @brief Sends VR AddCommand request to HMI