8000 Mark ruby bindings as ractor safe by LevitatingBusinessMan · Pull Request #1283 · oetiker/rrdtool-1.x · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Mark ruby bindings as ractor safe #1283

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

Merged
merged 4 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RRDtool - master ...
====================
Bugfixes
--------

* Mark the Ruby bindings as Ractor safe @LevitatingBusinessMan
* Fix Compatiblity with TCL-9 @yselkowitz
* Correctly link Ruby Bindings @LevitatingBusinessMan
* Fix MacOS Build error (no SOCK_CLOEXEC on mac) @ensc fixes oetiker#1261
Expand Down
1 change: 1 addition & 0 deletions bindings/ruby/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@

dir_config("rrd", ["#{ABS_TOP_BUILDDIR}/src", "#{ABS_TOP_SRCDIR}/src"], "#{ABS_TOP_BUILDDIR}/src/.libs")
have_library("rrd", "rrd_create")
have_func("rb_ext_ractor_safe", "ruby.h")
create_makefile("RRD")
4 changes: 4 additions & 0 deletions bindings/ruby/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ VALUE rb_rrd_xport(
void Init_RRD(
)
{
#if HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif

mRRD = rb_define_module("RRD");
rb_eRRDError = rb_define_class("RRDError", rb_eStandardError);

Expand Down
0