mon_check_owner()
Throw a ThreadError exception if the current thread does’t own the monitor
# File lib/monitor.rb, line 276 def mon_check_owner if @mon_owner != Thread.current raise ThreadError, "current thread not owner" end end