From 926301969f7970b5a59a065dabb234cddc590e6c Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 29 Jun 2011 03:09:34 +0000 Subject: * math.c: Attach documentation for Math. * object.c: Document NIL, TRUE, FALSE. * io.c: Improve grammar in ARGF comment. Document STDIN/OUT/ERR. Document ARGF global constant. * lib/rake: Hide deprecated toplevel constants from RDoc (import from rake trunk). * lib/thwait.rb: Document ThWait. * lib/mathn.rb: Hide Math redefinition from RDoc * lib/sync.rb: Add a basic comment for Sync_m, Synchronizer_m, Sync, Synchronizer. * parse.y: Document SCRIPT_LINES__. * hash.c: Document ENV class and global constant. * vm.c: Document TOPLEVEL_BINDING. * version.c: Document RUBY_* constants. * ruby.c: Document DATA and ARGV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/sync.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/sync.rb') diff --git a/lib/sync.rb b/lib/sync.rb index bb2ad2b00f..bae05a4a99 100644 --- a/lib/sync.rb +++ b/lib/sync.rb @@ -41,6 +41,9 @@ unless defined? Thread raise "Thread not available for this ruby interpreter" end +## +# A module that provides a two-phase lock with a counter. + module Sync_m RCS_ID='-$Id$-' @@ -298,9 +301,21 @@ module Sync_m return ret end end + +## +# An alias for Sync_m from sync.rb + Synchronizer_m = Sync_m +## +# A class that providesa two-phase lock with a counter. See Sync_m for +# details. + class Sync include Sync_m end + +## +# An alias for Sync from sync.rb. See Sync_m for details. + Synchronizer = Sync -- cgit v1.2.3