Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Allow the imported functions to release the Ruby GVL #24

Open
ParadoxV5 opened this issue Jul 11, 2023 · 0 comments
Open

Allow the imported functions to release the Ruby GVL #24

ParadoxV5 opened this issue Jul 11, 2023 · 0 comments

Comments

@ParadoxV5
Copy link
Owner

attach_function :long_running_function, [], :int, blocking: true

This allows other Ruby threads (if there are any) to proceed while the current one is crunching numbers in C.

Do not set this flag for FFI::CURRENT_PROCESS libraries or headers with #include <ruby.h> (requires #5).

@github-project-automation github-project-automation bot moved this to 🔜 To Do in FFI-UCtags Jul 11, 2023
@ParadoxV5 ParadoxV5 moved this from 🔜 To Do to ⏳ Backlog in FFI-UCtags Jul 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Backlog
Development

No branches or pull requests

1 participant