-
Notifications
You must be signed in to change notification settings - Fork 420
refactor: decouple worker threads from non-worker threads #1137
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
69 commits
Select commit
Hold shift + click to select a range
fe1158f
Decouple workers.
AlliBalliBaba ad34140
Moves code to separate file.
AlliBalliBaba 89b211d
Cleans up the exponential backoff.
AlliBalliBaba 7d2ab8c
Initial working implementation.
AlliBalliBaba f7e7d41
Refactors php threads to take callbacks.
AlliBalliBaba c03c59b
Cleanup.
AlliBalliBaba a9857dc
Cleanup.
AlliBalliBaba bac9555
Cleanup.
AlliBalliBaba a2f8d59
Cleanup.
AlliBalliBaba 279924c
Merge branch 'main' into refactor/start-worker-threads-directly
AlliBalliBaba 0825453
Adjusts watcher logic.
AlliBalliBaba 17d5cbe
Adjusts the watcher logic.
AlliBalliBaba 09e0ca6
Fix opcache_reset race condition.
AlliBalliBaba a726a2c
Merge branch 'main' into refactor/start-worker-threads-directly
AlliBalliBaba 7f13ada
Fixing merge conflicts and formatting.
AlliBalliBaba 13fb4bb
Prevents overlapping of TSRM reservation and script execution.
AlliBalliBaba a8a00c8
Adjustments as suggested by @dunglas.
AlliBalliBaba b4dd138
Adds error assertions.
AlliBalliBaba 03f98fa
Adds comments.
AlliBalliBaba e52dd0f
Removes logs and explicitly compares to C.false.
AlliBalliBaba cd98e33
Resets check.
AlliBalliBaba 4e2a2c6
Adds cast for safety.
AlliBalliBaba c51eb93
Fixes waitgroup overflow.
AlliBalliBaba 89d8e26
Resolves waitgroup race condition on startup.
AlliBalliBaba 3587243
Moves worker request logic to worker.go.
AlliBalliBaba ec32f0c
Removes defer.
AlliBalliBaba 4e35698
Removes call from go to c.
AlliBalliBaba 740fac7
Merge branch 'main' into refactor/start-worker-threads-directly
AlliBalliBaba 8a272cb
Fixes merge conflict.
AlliBalliBaba ecce5d5
Adds fibers test back in.
AlliBalliBaba 06ebd67
Refactors new thread loop approach.
AlliBalliBaba c811f4a
Removes redundant check.
AlliBalliBaba 6bd047a
Adds compareAndSwap.
AlliBalliBaba 55ad8ba
Refactor: removes global waitgroups and uses a 'thread state' abstrac…
AlliBalliBaba 3ffbe06
Merge branch 'main' into refactor/start-worker-threads-directly
AlliBalliBaba 01ed92b
Removes unnecessary method.
AlliBalliBaba 790cccc
Updates comment.
AlliBalliBaba 0dd2605
Removes unnecessary booleans.
AlliBalliBaba 60a66b4
test
AlliBalliBaba 4719fa8
First state machine steps.
AlliBalliBaba f72e8cb
Splits threads.
AlliBalliBaba d20e706
Minimal working implementation with broken tests.
AlliBalliBaba 6747d15
Fixes tests.
AlliBalliBaba 54dc267
Refactoring.
AlliBalliBaba 660efcd
Merge branch 'main' into refactor/start-worker-threads-directly
AlliBalliBaba 6214754
Fixes merge conflicts.
AlliBalliBaba 00eb834
Formatting
AlliBalliBaba 02b73b1
C formatting.
AlliBalliBaba 421904e
More cleanup.
AlliBalliBaba cca2a00
Allows for clean state transitions.
AlliBalliBaba ec8aeb7
Adds state tests.
AlliBalliBaba b598bd3
Adds support for thread transitioning.
AlliBalliBaba 66cedbd
Fixes the testdata path.
AlliBalliBaba 06af5d5
Formatting.
AlliBalliBaba 71c16bc
Allows transitioning back to inactive state.
AlliBalliBaba 5095342
Fixes go linting.
AlliBalliBaba 4b18059
Formatting.
AlliBalliBaba 15429d9
Removes duplication.
AlliBalliBaba c080608
Applies suggestions by @dunglas
AlliBalliBaba a166b87
Removes redundant check.
AlliBalliBaba 9491e6b
Locks the handler on restart.
AlliBalliBaba e795c86
Removes unnecessary log.
AlliBalliBaba ef1bd0d
Changes Unpin() logic as suggested by @withinboredom
AlliBalliBaba a8a4545
Adds suggestions by @dunglas and resolves TODO.
AlliBalliBaba 23a6362
Makes restarts fully safe.
AlliBalliBaba 18e3e58
Will make the initial startup fail even if the watcher is enabled (as…
AlliBalliBaba 3672c60
Also adds compareAndSwap to the test.
AlliBalliBaba 38f87b7
Adds comment.
AlliBalliBaba d97ebfe
Prevents panic on initial watcher startup.
AlliBalliBaba 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
Oops, something went wrong.
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.