-
Notifications
You must be signed in to change notification settings - Fork 13.3k
polledTimeout: add option to use CPU count instead of millis() #5870
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
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
fca1d5d
polledTimeout: add option to use CPU count instead of millis()
d-a-v 6cd506b
Merge branch 'master' into polledcpu
d-a-v 702cea8
use more "using" alias
d-a-v 2afa570
Merge branch 'master' into polledcpu
d-a-v 133c06f
more c++/clear code, using typename (thanks @devyte)
d-a-v d675eeb
rename class name to include unit, introduce timeMax() and check it w…
d-a-v f3f7a2d
remove useless defines
d-a-v a21514a
improve api readability, add micro-second unit
d-a-v 9b8e40b
update example
d-a-v ba105b7
mock: emulate getCycleCount, add/fix polledTimeout CI test
d-a-v 02909f8
Merge branch 'master' into polledcpu
d-a-v d1785c6
Merge branch 'master' into polledcpu
d-a-v ebda468
+ nano-seconds, assert -> message, comments, host test
d-a-v 7a4c4de
allow 0 for timeout (enables immediate timeout, fix division by 0)
d-a-v 2249315
Merge branch 'master' into polledcpu
d-a-v aa6b2d9
typo, set member instead of local variable
d-a-v e98c41c
unify error message
d-a-v 714beb3
slight change on checkExpired() allows "never expired"
d-a-v 925408e
remove traces of debug.h/cpp in this PR
d-a-v 412a241
include missing <limits> header
d-a-v 273306a
back to original expired test, introduce boolean _neverExpires, fix r…
d-a-v 531e08e
fix expiredOneShot with _timeout==0 check
d-a-v a041a66
reenable getTimeout()
d-a-v 70ac794
expose checkExpired with unit conversion
d-a-v e25b880
fix timing comments, move critical code to iram
d-a-v a20f8f6
add member ::neverExpires and use it where relevant
d-a-v 8d4c385
improve clarity
d-a-v ce7e9b9
remove exposed checkExpired(), adapt LEAmDNS with equivalent
d-a-v 0ca22ce
add API ::resetToNeverExpires(), use it in LEAmDNS
d-a-v 3d4b369
Merge branch 'master' into polledcpu
d-a-v ff660ae
remove offending constness from ::flagged() LEAmDNS (due do API fix i…
d-a-v 393d40f
simplify "Fast" base classes
d-a-v 1f4f73c
Merge branch 'master' into polledcpu
d-a-v daa5e85
Merge branch 'polledcpu' of github.com:d-a-v/Arduino into polledcpu
d-a-v 96c7fb7
minor variable rename
d-a-v 45c5da2
Merge branch 'master' into polledcpu
d-a-v 4930ed0
Fix examples
d-a-v f11c6e6
compliance with good c++ manners
d-a-v 9d73d18
Merge branch 'master' into polledcpu
d-a-v f971d42
minor changes for consistency
d-a-v b028ea8
add missing const
d-a-v a02f889
expired() and bool() moved to iram
d-a-v 40d31a5
constexpr compensation computing
d-a-v 75f36a7
add/update comments
d-a-v 0e72db2
Merge branch 'master' into polledcpu
d-a-v 4470ca2
Merge branch 'polledcpu' of github.com:d-a-v/Arduino into polledcpu
d-a-v 0969fee
move neverExpires and alwaysExpired
d-a-v File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.