mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c (rb_thread_safe_level): fix document. $SAFE=3 is obsolete.
[ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a9b06707d9
commit
122476479a
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Jun 18 23:38:07 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* thread.c (rb_thread_safe_level): fix document. $SAFE=3 is obsolete.
|
||||
[ci skip]
|
||||
|
||||
Thu Jun 18 23:25:51 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/extmk.rb: configure intersection of with-ext and not
|
||||
|
|
4
thread.c
4
thread.c
|
@ -2701,9 +2701,9 @@ rb_thread_stop_p(VALUE thread)
|
|||
* Returns the safe level in effect for <i>thr</i>. Setting thread-local safe
|
||||
* levels can help when implementing sandboxes which run insecure code.
|
||||
*
|
||||
* thr = Thread.new { $SAFE = 3; sleep }
|
||||
* thr = Thread.new { $SAFE = 1; sleep }
|
||||
* Thread.current.safe_level #=> 0
|
||||
* thr.safe_level #=> 3
|
||||
* thr.safe_level #=> 1
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Reference in a new issue