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

rb_thread_lock_native_thread() #10031

Merged
merged 1 commit into from Feb 21, 2024
Merged

Conversation

ko1
Copy link
Contributor

@ko1 ko1 commented Feb 20, 2024

Introduce rb_thread_lock_native_thread() to allocate dedicated native thread to the current Ruby thread for M:N threads. This C API is similar to Go's runtime.LockOSThread().

Accepted at https://github.com/ruby/dev-meeting-log/blob/master/2023/DevMeeting-2023-08-24.md (and missed to implement on Ruby 3.3.0)

Introduce `rb_thread_lock_native_thread()` to allocate dedicated
native thread to the current Ruby thread for M:N threads.
This C API is similar to Go's `runtime.LockOSThread()`.

Accepted at https://github.com/ruby/dev-meeting-log/blob/master/2023/DevMeeting-2023-08-24.md
(and missed to implement on Ruby 3.3.0)
@ko1 ko1 force-pushed the rb_thread_lock_native_thread branch from 4373799 to 8f437c1 Compare February 21, 2024 05:48
@ko1 ko1 merged commit d578684 into ruby:master Feb 21, 2024
96 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant