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

ruby-changes:33531

From: hsbt <ko1@a...>
Date: Thu, 17 Apr 2014 16:31:50 +0900 (JST)
Subject: [ruby-changes:33531] hsbt:r45612 (trunk): * prelude.rb: [DOC] Update Thread::exclusive docs by @stevenharman.

hsbt	2014-04-17 16:31:43 +0900 (Thu, 17 Apr 2014)

  New Revision: 45612

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45612

  Log:
    * prelude.rb: [DOC] Update Thread::exclusive docs by @stevenharman.
      [ci skip][fix GH-589]

  Modified files:
    trunk/ChangeLog
    trunk/prelude.rb
Index: prelude.rb
===================================================================
--- prelude.rb	(revision 45611)
+++ prelude.rb	(revision 45612)
@@ -4,9 +4,9 @@ class Thread https://github.com/ruby/ruby/blob/trunk/prelude.rb#L4
   # call-seq:
   #    Thread.exclusive { block }   => obj
   #
-  # Wraps a block in Thread.critical, restoring the original value
-  # upon exit from the critical section, and returns the value of the
-  # block.
+  # Wraps the block in a single, VM-global Mutex.synchronize, returning the
+  # value of the block. A thread executing inside the exclusive section will
+  # only block other threads which also use the Thread.exclusive mechanism.
   def self.exclusive
     MUTEX_FOR_THREAD_EXCLUSIVE.synchronize{
       yield
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45611)
+++ ChangeLog	(revision 45612)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Apr 17 16:28:10 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* prelude.rb: [DOC] Update Thread::exclusive docs by @stevenharman.
+
 Thu Apr 17 10:03:53 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* lib/fileutils.rb (FileUtils#copy_entry): update rdoc about

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

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