Object
Wraps a block in Thread.critical, restoring the original value upon exit from the critical section.
# File thread.rb, line 24 def Thread.exclusive _old = Thread.critical begin Thread.critical = true return yield ensure Thread.critical = _old end end
This page was generated for Ruby 1.8.6
Ruby-doc.org is provided by James Britt and Neurogami. Maximum R+D.
Generated with Ruby-doc Rdoc Generator 0.44.0.