From: Eric Wong <normalperson@yhbt.net>
To: kgio@librelist.org
Subject: [PATCH] avoid deprecated rb_thread_blocking_region on MRI 2.x
Date: Sat, 15 Feb 2014 08:25:04 +0000 [thread overview]
Message-ID: <20140215082504.GA12998@dcvr.yhbt.net> (raw)
In-Reply-To: <20140215082504.GA12998@dcvr.yhbt.net>
We've finally figured out how to avoid warnings when building on
C Ruby 2.x
---
ext/kgio/kgio.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ext/kgio/kgio.h b/ext/kgio/kgio.h
index 66a8705..7c992fb 100644
--- a/ext/kgio/kgio.h
+++ b/ext/kgio/kgio.h
@@ -39,8 +39,7 @@ void kgio_autopush_send(VALUE);
VALUE kgio_call_wait_writable(VALUE io);
VALUE kgio_call_wait_readable(VALUE io);
-#if defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL) && \
- !defined(HAVE_RB_THREAD_BLOCKING_REGION)
+#if defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL) && defined(HAVE_RUBY_THREAD_H)
# define KGIO_WITHOUT_GVL(fn,data1,ubf,data2) \
rb_thread_call_without_gvl((fn),(data1),(ubf),(data2))
#elif defined(HAVE_RB_THREAD_BLOCKING_REGION)
--
Eric Wong
parent reply other threads:[~2014-02-15 8:25 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20140215082504.GA12998@dcvr.yhbt.net>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/kgio/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140215082504.GA12998@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=kgio@librelist.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/kgio.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).