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

dialogs.c: move the scanning process into its own thread. #490

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

AlexandraTrifan
Copy link
Contributor

@AlexandraTrifan AlexandraTrifan commented Apr 19, 2024

PR Description

On MacOS there were some issues with the network iio_context scanning process. Inside libiio, some mutex locks are done during scanning. This blocks the UI thread and makes the app unusable. Moving into its own thread and creating a protected section (similar to calibration processes) should resolve this issue.

Besides these changes, iio-osc also needs some different fixes to get it working on MacOS (here are 2 dev branches on this matter by Cristina and Travis).

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have followed the coding standards and guidelines
  • I have conducted a self-review of my own code changes
  • I have commented new code, particulary complex or unclear areas
  • I have checked in CI output that no new warnings/errors got introduced
  • I have updated documentation accordingly (GitHub Pages, READMEs, etc)

dialogs.c Show resolved Hide resolved
dialogs.c Show resolved Hide resolved
On MacOS there were some issues with the network iio_context scanning
process. Inside libiio, some mutex locks are done during scanning. This
blocks the UI thread and makes the app unusable. Moving into its own thread
and creating a protected section (similar to calibration processes) should
resolve this issue.

Signed-off-by: AlexandraTrifan <[email protected]>
@dNechita dNechita merged commit 12a9849 into main Apr 25, 2024
10 checks passed
@dNechita dNechita deleted the altrifan/test-mac-scan branch April 25, 2024 11:51
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.

4 participants