[前][次][番号順一覧][スレッド一覧]

ruby-changes:64167

From: Alan <ko1@a...>
Date: Tue, 15 Dec 2020 08:27:32 +0900 (JST)
Subject: [ruby-changes:64167] a5fd651575 (master): Reword docs for Fiddle::Function#call [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=a5fd651575

From a5fd65157500a65debeb88f5ac6a62821f96972e Mon Sep 17 00:00:00 2001
From: Alan Wu <alanwu@r...>
Date: Mon, 14 Dec 2020 18:26:32 -0500
Subject: Reword docs for Fiddle::Function#call [ci skip]

I'm using `<code>` instead of `+` since `+` only works when it encloses
a single word.

diff --git a/ext/fiddle/function.c b/ext/fiddle/function.c
index 1d82bc8..afa95d7 100644
--- a/ext/fiddle/function.c
+++ b/ext/fiddle/function.c
@@ -451,9 +451,8 @@ Init_fiddle_function(void) https://github.com/ruby/ruby/blob/trunk/ext/fiddle/function.c#L451
      * Caller must ensure the underlying function is called in a
      * thread-safe manner if running in a multi-threaded process.
      *
-     * Note that it is not thread-safe to use this method to
-     * directly or indirectly call many Ruby C-extension APIs unless
-     * you don't pass +need_gvl: true+ to Fiddle::Function#new.
+     * Note that many Ruby C-extension APIs are thread-safe to call
+     * only when the Function is constructed with <code>need_gvl: true</code>.
      *
      * For an example see Fiddle::Function
      *
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]