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

Minor plugins refactoring #611

Merged
merged 6 commits into from
Jan 9, 2025
Merged

Minor plugins refactoring #611

merged 6 commits into from
Jan 9, 2025

Conversation

vifactor
Copy link
Collaborator

@vifactor vifactor commented Jan 7, 2025

Mainly removal unnecessary heap allocations (use stack instead), redundant code removal, use of algos instead of raw loops

@vifactor vifactor added the merge label Jan 7, 2025
}


void QDltPluginManager::decodeMsg(QDltMsg &msg, int triggeredByUser)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is probably the only function which is kinda used in multithreaded context, it is hence the only one that has to be protected by the mutex.

@@ -71,7 +71,7 @@ class QDLT_EXPORT QDltPlugin
bool isCommand();

// generic plugin interfaces
QString name();
QString name() const;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

many of the methods here should actually be const, but I do not change that because I do not know what promise we have to hold for plugins implementers

@alexmucde alexmucde added this to the Release v2.28.0 milestone Jan 9, 2025
@alexmucde alexmucde merged commit 269733c into master Jan 9, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants