-
Notifications
You must be signed in to change notification settings - Fork 13.3k
recurrent scheduled functions max delay update #8949
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
Draft
dok-net
wants to merge
29
commits into
esp8266:master
Choose a base branch
from
dok-net:fix_8947
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
2757aa2
Revert `compute_scheduled_recurrent_grain`
dok-net a81e544
wip
dok-net 588e153
Add function to retrieve the time remaining until the (next) timeout …
dok-net a435fa5
Rename and reformat according to review.
dok-net 232961e
Revert _current as member change.
dok-net 210c3d4
Fix expiredOneShot to properly stay expired forever unless reset.
dok-net a6456d0
Fix "reverse notation return statement"
dok-net 9863f71
Reset() was wrecked by resetting _timeout. Reverted.
dok-net 9c83f9a
Expired check ALWAYS executes yield policy BEFORE checking expiration…
dok-net 4cbe06b
Reformat
dok-net 20e6378
Fix comment, remove redundant parentheses
dok-net b0eb345
expired() is not const qualified in PolledTmeout.
dok-net a3612dd
expiredOneShot() qualifed as const, despite asymmetry with expired() …
dok-net c88af7b
Remove alwaysExpired, it is identical to 0 and obfuscates the code.
dok-net 4eab7e4
Somewhat easier on the human reader.
dok-net b5285c3
Avoid possible unnecessary time conversion.
dok-net b54576f
Fix one-shot mode in resetToNeverExpires(). Add convenient stop() syn…
dok-net 100d2c4
Due to review and discussion, _oneShotExpired removed again.
dok-net 81b90c9
Revert removal of PolledTimeout::alwaysExpired
dok-net eaf05e9
Finalize scheduled recurrent function delay logic.
dok-net a09726d
Fix millis/micros mismatch.
dok-net 4d3655b
ISR safety.
dok-net 55d465a
Returning max delay value that is uint-wrap around safe.
dok-net c41a2c2
Add pseudo-get delay function for scheduled functions
dok-net 4e654d1
Worked out input from PR review.
dok-net 717f4ad
use single constexpr definition instead of repeated expression.
dok-net 538025a
Simplified roll-over logic
dok-net 861cf02
Add rationale for HALF_MAX_MICROS
dok-net b3b4aa0
Use CAS to minimize critical sections.
dok-net 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
Submodule SoftwareSerial
updated
24 files
+2 −2 | README.md | |
+2 −2 | examples/bitpattern/bitpattern.ino | |
+74 −0 | examples/circular_queue_mp_test/mp_queue_test.cpp | |
+371 −0 | examples/coro/coro.ino | |
+22 −22 | examples/onewiretest/onewiretest.ino | |
+1 −1 | library.json | |
+1 −1 | library.properties | |
+22 −24 | src/SoftwareSerial.cpp | |
+29 −5 | src/SoftwareSerial.h | |
+92 −84 | src/circular_queue/Delegate.h | |
+4 −3 | src/circular_queue/MultiDelegate.h | |
+92 −0 | src/circular_queue/async_queue.h | |
+178 −0 | src/circular_queue/cancellation_token.h | |
+33 −41 | src/circular_queue/circular_queue.h | |
+224 −112 | src/circular_queue/circular_queue_mp.h | |
+96 −0 | src/circular_queue/generator.h | |
+106 −2 | src/circular_queue/ghostl.h | |
+256 −0 | src/circular_queue/lfllist.h | |
+86 −0 | src/circular_queue/lfllist_allocator.h | |
+147 −0 | src/circular_queue/run_task.h | |
+190 −0 | src/circular_queue/task.h | |
+177 −0 | src/circular_queue/task_completion_source.h | |
+128 −0 | src/circular_queue/when_all.h | |
+122 −0 | src/circular_queue/when_any.h |
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.