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

uORBManager: Cleanup for callbacks, semaphores etc #516

Merged
merged 2 commits into from
Oct 6, 2023
Merged

Conversation

pussuw
Copy link

@pussuw pussuw commented Oct 5, 2023

Solved Problem

When ... I found that ...

Fixes #{Github issue ID}

Solution

  • Add ... for ...
  • Refactor ...

Alternatives

We could also ...

Test coverage

Context

Related links, screenshot before/after, video

pussuw added 2 commits October 5, 2023 15:53
The pointer types should be compatible, still, for OCD purposes change
them.
When the semaphore is released and re-instantiated, do proper cleanup
in g_sem_pool.reserve(). Also remove GlobalSemPool and GlobalLock::set
and replace them with free() which just destroys the mutex.
@pussuw pussuw requested a review from jlaitine October 5, 2023 12:54
Copy link

@jlaitine jlaitine left a comment

Choose a reason for hiding this comment

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

LGTM! I also made a quick performance check with old pixhawk hw, and a SITL test.

@pussuw pussuw merged commit 7f009f0 into main Oct 6, 2023
21 checks passed
@pussuw pussuw deleted the orbmgr_cleanup branch October 6, 2023 08:09
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.

2 participants