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

Remove uses of Yuni::Mutex, use std::mutex instead #1823

Conversation

NicolasSalmieriScalian
Copy link
Contributor

No description provided.

Copy link

watermelon-copilot-for-code-review bot commented Dec 13, 2023

Watermelon AI Summary

AI Summary deactivated by NicolasSalmieriScalian

No results found in GitHub PRs :(

No results found in Jira Tickets :(

No results found in Confluence Docs :(

No results found in Slack Threads :(

No results found in Notion Pages :(

No results found in Linear Tickets :(

No results found in Asana Tasks :(

Antares_Simulator is an open repo and Watermelon will serve it for free.
🍉🫶
Have you starred Watermelon?

Copy link
Member

@flomnes flomnes left a comment

Choose a reason for hiding this comment

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

LGTM. We usually don't specify template arguments when they're obvious, from C++17 they're deduced, see here. We have been using C++17 for over a year, and will soon be using C++20.

std::mutex mutex;
std::lock_guard<std::mutex> lock(mutex); // C++03/C++11
std::lock_guard lock(mutex); // C++17

@flomnes flomnes changed the title Feature/yuni mutex Remove uses of Yuni::Mutex, use std::mutex instead Dec 13, 2023
@flomnes flomnes changed the title Remove uses of Yuni::Mutex, use std::mutex instead Remove uses of Yuni::Mutex, use std::mutex instead Dec 13, 2023
@flomnes flomnes added this to the 9.0 milestone Dec 13, 2023
@NicolasSalmieriScalian
Copy link
Contributor Author

LGTM. We usually don't specify template arguments when they're obvious, from C++17 they're deduced, see here. We have been using C++17 for over a year, and will soon be using C++20.

std::mutex mutex;
std::lock_guard<std::mutex> lock(mutex); // C++03/C++11
std::lock_guard lock(mutex); // C++17

Should I remove all obvious template arguments of std::lock_guard in the codebase, or just those I added?

@flomnes
Copy link
Member

flomnes commented Dec 13, 2023

Should I remove all obvious template arguments of std::lock_guard in the codebase, or just those I added?

Can you please remove them all ?

@a-zakir
Copy link
Contributor

a-zakir commented Dec 13, 2023

LGTM. We usually don't specify template arguments when they're obvious, from C++17 they're deduced, see here. We have been using C++17 for over a year, and will soon be using C++20.

std::mutex mutex;
std::lock_guard<std::mutex> lock(mutex); // C++03/C++11
std::lock_guard lock(mutex); // C++17

Should I remove all obvious template arguments of std::lock_guard in the codebase, or just those I added?

LGTM. We usually don't specify template arguments when they're obvious, from C++17 they're deduced, see here. We have been using C++17 for over a year, and will soon be using C++20.

std::mutex mutex;
std::lock_guard<std::mutex> lock(mutex); // C++03/C++11
std::lock_guard lock(mutex); // C++17

Should I remove all obvious template arguments of std::lock_guard in the codebase, or just those I added?

you named this Pr "Remove uses of Yuni::Mutex, use std::mutex instead " should i....

@flomnes
Copy link
Member

flomnes commented Feb 2, 2024

Hi @NicolasSalmieriScalian, can you please resolve conflicts ? Our license has switched to MPL 2.0, allowing us to merge PRs from you

@flomnes
Copy link
Member

flomnes commented Feb 26, 2024

See #1964

@flomnes flomnes closed this Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants