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

Improve delay() behavior #2828

Merged
merged 8 commits into from
Sep 20, 2024
Merged

Improve delay() behavior #2828

merged 8 commits into from
Sep 20, 2024

Conversation

sergeuz
Copy link
Member

@sergeuz sergeuz commented Sep 6, 2024

Problem

This PR fixes a number of known problems with delay() in threaded mode:

  • When called from a user thread, delay() is not sub-tick precise.
  • Application events are not processed at a regular rate.
  • delay() causes to many context switches to the app thread when it's supposed to be suspended.

Steps to Test

Run the wiring/no_fixture_long_running test.

@sergeuz sergeuz changed the base branch from develop to develop-6.x September 6, 2024 16:53
@sergeuz sergeuz marked this pull request as ready for review September 12, 2024 10:47
@sergeuz sergeuz force-pushed the fix_delay/sc-130532 branch from 305af33 to 4f9fd4b Compare September 16, 2024 16:54
@sergeuz sergeuz changed the base branch from develop-6.x to develop September 16, 2024 16:54
@Kategrode Kategrode added this to the 6.2.0 milestone Sep 20, 2024
@sergeuz sergeuz force-pushed the fix_delay/sc-130532 branch from 8c30864 to a5d1ef2 Compare September 20, 2024 16:44
@sergeuz sergeuz merged commit 9338b13 into develop Sep 20, 2024
13 checks passed
@sergeuz sergeuz deleted the fix_delay/sc-130532 branch September 20, 2024 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants