ruby-changes:64372
From: Nobuyoshi <ko1@a...>
Date: Sun, 20 Dec 2020 15:14:10 +0900 (JST)
Subject: [ruby-changes:64372] b911509a08 (master): Adjusted indents of closing braces [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=b911509a08 From b911509a08cee6c99ab8eec01516ebe84ba9029d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 20 Dec 2020 15:13:07 +0900 Subject: Adjusted indents of closing braces [ci skip] diff --git a/ractor.rb b/ractor.rb index 5cb9552..3622c66 100644 --- a/ractor.rb +++ b/ractor.rb @@ -252,7 +252,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L252 def self.current __builtin_cexpr! %q{ rb_ec_ractor_ptr(ec)->self - } + } end # Returns total count of Ractors currently running. @@ -265,7 +265,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L265 def self.count __builtin_cexpr! %q{ ULONG2NUM(GET_VM()->ractor.cnt); - } + } end # call-seq: Ractor.select(*ractors, [yield_value:, move: false]) -> [ractor or symbol, obj] @@ -325,7 +325,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L325 yield_unspecified == Qtrue ? Qundef : yield_value, (bool)RTEST(move) ? true : false, &rv); return rb_ary_new_from_args(2, rv, v); - } + } end # Receive an incoming message from the current Ractor's incoming port's queue, which was @@ -386,7 +386,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L386 def self.receive __builtin_cexpr! %q{ ractor_receive(ec, rb_ec_ractor_ptr(ec)) - } + } end class << self @@ -397,7 +397,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L397 private def receive __builtin_cexpr! %q{ ractor_receive(ec, rb_ec_ractor_ptr(ec)) - } + } end alias recv receive @@ -544,7 +544,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L544 def send(obj, move: false) __builtin_cexpr! %q{ ractor_send(ec, RACTOR_PTR(self), obj, move) - } + } end alias << send @@ -584,7 +584,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L584 def self.yield(obj, move: false) __builtin_cexpr! %q{ ractor_yield(ec, rb_ec_ractor_ptr(ec), obj, move) - } + } end # Take a message from ractor's outgoing port, which was put there by Ractor.yield or at ractor's @@ -647,7 +647,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L647 def take __builtin_cexpr! %q{ ractor_take(ec, RACTOR_PTR(self)) - } + } end def inspect # :nodoc: @@ -656,7 +656,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L656 id = __builtin_cexpr! %q{INT2FIX(RACTOR_PTR(self)->id)} status = __builtin_cexpr! %q{ rb_str_new2(ractor_status_str(RACTOR_PTR(self)->status_)) - } + } "#<Ractor:##{id}#{name ? ' '+name : ''}#{loc ? " " + loc : ''} #{status}>" end @@ -681,7 +681,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L681 def close_incoming __builtin_cexpr! %q{ ractor_close_incoming(ec, RACTOR_PTR(self)); - } + } end # Closes the outgoing port and returns its previous state. @@ -696,7 +696,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L696 def close_outgoing __builtin_cexpr! %q{ ractor_close_outgoing(ec, RACTOR_PTR(self)); - } + } end # Checks if the object is shareable by ractors. @@ -709,7 +709,7 @@ class Ractor https://github.com/ruby/ruby/blob/trunk/ractor.rb#L709 def self.shareable? obj __builtin_cexpr! %q{ rb_ractor_shareable_p(obj) ? Qtrue : Qfalse; - } + } end # Make +obj+ sharable. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/