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

Monitoring rework #127

Merged
merged 2 commits into from
Apr 5, 2024
Merged

Monitoring rework #127

merged 2 commits into from
Apr 5, 2024

Conversation

vvfedorenko
Copy link
Contributor

Reduce the scope of monitoring mutex lock and move GNSS monitoring under another mutex with GNSS thread filling the data.

Current implementation uses monitoring mutex lock on every iteration of
the loop. It can be easily blocked by multiple monitoring queries. Let's
reduce the scope of the lock.

Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
@leoleovich
Copy link
Contributor

@agagniere can you take a look please?

@agagniere agagniere added the enhancement New feature or request label Apr 3, 2024
src/oscillatord.c Outdated Show resolved Hide resolved
The GNSS info is collected in separate thread and it's better to prepare
GNSS monitoring data filled in within the same thread. Introduce another
mutex to reduce the scope of the lock section and avoid any double locks.

Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
@vvfedorenko
Copy link
Contributor Author

adjusted the code

@agagniere agagniere merged commit 4b01963 into Orolia2s:main Apr 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants