Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creation register unregister data races #45

Merged
merged 13 commits into from
Mar 22, 2024

Conversation

rex-schilasky
Copy link
Contributor

No description provided.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

}

bool CRegistrationProvider::RegisterProcess()
Registration::Sample CRegistrationProvider::GetProcessRegisterSample()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method 'GetProcessRegisterSample' can be made static [readability-convert-member-functions-to-static]

ecal/core/src/registration/ecal_registration_provider.h:70:

-     Registration::Sample GetProcessRegisterSample();
+     static Registration::Sample GetProcessRegisterSample();

}

bool CRegistrationProvider::UnregisterProcess()
Registration::Sample CRegistrationProvider::GetProcessUnregisterSample()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method 'GetProcessUnregisterSample' can be made static [readability-convert-member-functions-to-static]

ecal/core/src/registration/ecal_registration_provider.h:71:

-     Registration::Sample GetProcessUnregisterSample();
+     static Registration::Sample GetProcessUnregisterSample();

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions


bool CDescGate::GetServiceTypeNames(const std::string& service_name_, const std::string& method_name_, std::string& req_type_name_, std::string& resp_type_name_)
{
std::tuple<std::string, std::string> service_method_tuple = std::make_tuple(service_name_, method_name_);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'service_method_tuple' of type 'std::tuple<std::string, std::string>' (aka 'tuple<basic_string, basic_string>') can be declared 'const' [misc-const-correctness]

Suggested change
std::tuple<std::string, std::string> service_method_tuple = std::make_tuple(service_name_, method_name_);
std::tuple<std::string, std::string> const service_method_tuple = std::make_tuple(service_name_, method_name_);


bool CDescGate::GetServiceDescription(const std::string& service_name_, const std::string& method_name_, std::string& req_type_desc_, std::string& resp_type_desc_)
{
std::tuple<std::string, std::string> service_method_tuple = std::make_tuple(service_name_, method_name_);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'service_method_tuple' of type 'std::tuple<std::string, std::string>' (aka 'tuple<basic_string, basic_string>') can be declared 'const' [misc-const-correctness]

Suggested change
std::tuple<std::string, std::string> service_method_tuple = std::make_tuple(service_name_, method_name_);
std::tuple<std::string, std::string> const service_method_tuple = std::make_tuple(service_name_, method_name_);

}
}
break;
case bct_unreg_service:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: switch has 3 consecutive identical branches [bugprone-branch-clone]

    case bct_unreg_service:
    ^
Additional context

ecal/core/src/ecal_descgate.cpp:211: last of these clones ends here

      break;
           ^


Registration::Sample CRegistrationProvider::GetProcessRegisterSample()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method 'GetProcessRegisterSample' can be made static [readability-convert-member-functions-to-static]

ecal/core/src/registration/ecal_registration_provider.h:74:

-     Registration::Sample GetProcessRegisterSample();
+     static Registration::Sample GetProcessRegisterSample();

}

bool CRegistrationProvider::RegisterClient()
Registration::Sample CRegistrationProvider::GetProcessUnregisterSample()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method 'GetProcessUnregisterSample' can be made static [readability-convert-member-functions-to-static]

ecal/core/src/registration/ecal_registration_provider.h:75:

-     Registration::Sample GetProcessUnregisterSample();
+     static Registration::Sample GetProcessUnregisterSample();

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

}
}
break;
case bct_unreg_service:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: switch has 3 consecutive identical branches [bugprone-branch-clone]

    case bct_unreg_service:
    ^
Additional context

ecal/core/src/ecal_descgate.cpp:196: last of these clones ends here

      break;
           ^

, const SDataTypeInformation& request_type_information_
, const SDataTypeInformation& response_type_information_)
{
std::tuple<std::string, std::string> service_method_tuple = std::make_tuple(service_name_, method_name_);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'service_method_tuple' of type 'std::tuple<std::string, std::string>' (aka 'tuple<basic_string, basic_string>') can be declared 'const' [misc-const-correctness]

Suggested change
std::tuple<std::string, std::string> service_method_tuple = std::make_tuple(service_name_, method_name_);
std::tuple<std::string, std::string> const service_method_tuple = std::make_tuple(service_name_, method_name_);

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

}
}
break;
case bct_unreg_service:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: switch has 3 consecutive identical branches [bugprone-branch-clone]

    case bct_unreg_service:
    ^
Additional context

ecal/core/src/ecal_descgate.cpp:241: last of these clones ends here

      break;
           ^

@rex-schilasky rex-schilasky merged commit e145c74 into main Mar 22, 2024
82 checks passed
@rex-schilasky rex-schilasky deleted the creation-register-unregister-data-races branch March 22, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant