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

Add Crystal::System::Thread.current_thread?, #scheduler? #14660

Conversation

ysbaddaden
Copy link
Contributor

The internal runtime may need to access the current thread and scheduler before they're actually defined and without lazily defining them (e.g. tracing).

Extracted from #14659

The internal runtime may need to access the current thread and scheduler
before they're actually defined *and* without defining them (e.g. tracing).
@straight-shoota straight-shoota added this to the 1.13.0 milestone Jun 4, 2024
@straight-shoota straight-shoota changed the title Add Crystal::System::Thread.current_thread? + Thread#scheduler? Add Crystal::System::Thread.current_thread? + Thread#scheduler? Jun 4, 2024
@straight-shoota straight-shoota changed the title Add Crystal::System::Thread.current_thread? + Thread#scheduler? Add Crystal::System::Thread.current_thread?, #scheduler? Jun 5, 2024
@straight-shoota straight-shoota merged commit 00b1e79 into crystal-lang:master Jun 5, 2024
61 checks passed
@ysbaddaden ysbaddaden deleted the feature/crystal-system-thread-optional-current-thread branch June 6, 2024 11: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.

2 participants