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

Add locks #333

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add locks #333

wants to merge 3 commits into from

Conversation

gurux13
Copy link

@gurux13 gurux13 commented Apr 10, 2020

Currently the only way to wait for data is in a busy loop.
This adds locking mechanisms to the Raspberry Pi, when compiled with WITH_LOCKS.

@Locke
Copy link

Locke commented Apr 10, 2020

Note: if this should be merged my alternative PR #87 is probably obsolete / could be closed as won't fix with a reference to this one.

@1technophile
Copy link
Collaborator

This PR currently break the CI:
https://travis-ci.org/github/sui77/rc-switch

In particular focus should be put also on the Arduino and ESP behaviours

@gurux13
Copy link
Author

gurux13 commented Apr 11, 2020

Fixed. I don't use this library for Arduino builds, so it's a little complicated for me to test on Arduino.
This PR does not support Arduino, so I've added a check that the locks are used only on a RPi.
If you find that this works on other platforms, please feel free to add proper preprocessor checks.

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.

3 participants