No objections?  Done.

BTW it seems that the reply-to on the list has changed.  All the
recent messages have reply-to the author, not the list.

Gavin


On Saturday, November 15, 2003, 1:34:59 PM, Gavin wrote:

> May I commit this change?

> It merely wraps "def Thread.exclusive" in "class Thread" so that RDoc
> doesn't complain that it doesn't know about class Thread.

> Gavin


> Index: lib/thread.rb
> ===================================================================
> RCS file: /src/ruby/lib/thread.rb,v
> retrieving revision 1.15
> diff -c -b -u -r1.15 thread.rb
> cvs server: conflicting specifications of output style
> --- lib/thread.rb       17 Jan 2003 09:30:11 -0000      1.15
> +++ lib/thread.rb       15 Nov 2003 02:32:59 -0000
> @@ -21,16 +21,18 @@
>    Thread.abort_on_exception = true
>  end

> -#
> -# FIXME: not documented in Pickaxe or Nutshell.
> -#
> -def Thread.exclusive
> +class Thread
> +  #
> +  # FIXME: not documented in Pickaxe or Nutshell.
> +  #
> +  def Thread.exclusive
>    _old = Thread.critical
>    begin
>      Thread.critical = true
>      return yield
>    ensure
>      Thread.critical = _old
> +    end
>    end
>  end