forked from crystal-lang/crystal
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor initialization of main Fiber/Thread
Remove ThreadLocal usage for current thread. Initialize a main thread globally. Let that initialize the main fiber. Initialize main fiber *of each new thread* when thread starts. Clarify intent different of constructors. Let fiber know if it's currently running in any thread by Fiber#thread.
- Loading branch information
Showing
3 changed files
with
60 additions
and
48 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