Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@LevitatingBusinessMan
Copy link
Contributor

My other PR isn't merged yet but I would also like for you to look at this one.

Ruby has a new method for concurrency called Ractors.

For C bindings to be used inside a Ractor they need to be marked Ractor-safe:

If an extension desires to be marked as Ractor-safe the extension should call rb_ext_ractor_safe(true) at the Init_ function for the extension, and all defined methods will be marked as Ractor-safe.

https://docs.ruby-lang.org/en/master/extension_rdoc.html#label-Appendix+F.+Ractor+support

I think all of the methods present in the bindings are inherently thread safe.
By marking them Ractor-safe ruby programs can generate graphs concurrently.

See also ruby/ruby#3824 for more information concerning this method.

@codecov
Copy link

codecov bot commented Mar 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.07%. Comparing base (6b4d281) to head (62f8773).
Report is 11 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1283      +/-   ##
==========================================
- Coverage   51.10%   51.07%   -0.04%     
==========================================
  Files          45       45              
  Lines       18259    18260       +1     
==========================================
- Hits         9332     9326       -6     
- Misses       8927     8934       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

oetiker
oetiker previously approved these changes Mar 27, 2025
@c72578
Copy link
Collaborator

c72578 commented Mar 30, 2025

@LevitatingBusinessMan Please update the CHANGES file too.

@c72578 c72578 merged commit fe0db9a into oetiker:master Apr 4, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants