-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MT: move set_current_thread to Fiber (from Crystal::Scheduler)
This avoids manipulating `fiber.@current_thread` which ain't very pretty, and moves the responsibility to manipulate it to Crystal::Scheduler. That Crystal::Scheduler is also responsible from making sure a fiber will always be enqueued or resumed on the thread it's been associated to. Lastly, we remove the current_thread store that was always replacing any previous value on context swap, which sadly doesn't seem to improve performance...
- Loading branch information
1 parent
c9e2860
commit 56f8909
Showing
4 changed files
with
41 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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 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 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 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