On Fri, May 28, 2004 at 01:47:31AM +0900, Martin Hart wrote:
> Hi all,
> 
> I am using a Mutex to protect a function, but I need to call into the
> function again from the same thread without deadlocking:

See [ruby-talk:84293].

  class A
    include MonitorMixin

    def a
      synchronize { b }
    end

    def b
      synchronize { puts "hello" }
    end
  end

Paul