8000 Mutex adapter plus other platform specific things by democloid · Pull Request #551 · xiphonics/picoTracker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Mutex adapter plus other platform specific things #551

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

Merged
merged 6 commits into from
May 13, 2025
Merged

Conversation

democloid
Copy link
Collaborator

Changes:

  • create a mutex adapter
  • Create a platform specific rand
  • create a platform specific reboot to bootloader
  • create platform specific reboot
  • remove remaining pico imports

partially fixes #547

Copy link
Collaborator
@maks maks left a comment

Choose a reason for hiding this comment

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

All looks good in principle.

My main concern is regarding the drawing mutex and that testing this branch shows to me absolutely no improvement in drawing corruption when testing with a deoptimised build with Tardline.

In comparison testing PR #542 in the same configuration shows no drawing corruption at all.

So I'd want us to merge #542 first and then be very careful with merge conflict resolution on merging this PR afterwards that we don't accidentally lose the fixes from #542.

@@ -518,7 +519,9 @@ bool AppWindow::onEvent(GUIEvent &event) {
unsigned short v = 1 << event.GetValue();

MixerService *sm = MixerService::GetInstance();
sm->Lock();
// TODO(democloid): this causes a deadlock, verify original intent
Copy link
Collaborator

Choose a reason for hiding this comment

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

my concern here is if the mutex was not actually being enabled (by mistake) but things actually work fine then it really shouldnt be here if it causes a deadlock and we should just remove it.

@maks
Copy link
Collaborator
maks commented May 12, 2025

@democloid also need to be careful with merging this after #544 and #545 as this PR is stacked on those and currently includes those commits too.

@democloid
Copy link
Collaborator Author

Macro instrument was still being instantiated using almost 20kb memory.

Copy link
Collaborator
@maks maks left a comment

Choose a reason for hiding this comment

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

👍🏻

@maks maks merged commit 9e2905d into master May 13, 2025
3 checks passed
@maks maks deleted the mutex-adapter branch May 13, 2025 02:45
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.

Remove all platform specific dependencies from main codebase
2 participants
0