Hi, > require ynchronizedエ > > class Demo > > def method1() > ... > end > > def method2() > ... > end > > synchronized (:test1) > end > Note: ynchronizedエ is to be applied in the same manner as エattr_readerエ, > ttr_writerエ, etc. > Any comments, improvements? > Something for the RAA? I wrote the MutexM. (--> http://www.ruby-lang.org/en/raa-list.rhtml?name=MutexM) class Demo include MutexM def initialize super @foo = nil @bar = 'bar' end synchronize_reader(:foo) synchronize_accessor(:bar) def method1() ... end synchronized :method1 def method2() synchronize do ... mothod1() # <-- Don't block! ... end end end