10 self.unlock rescue nil
18 MUTEX_FOR_THREAD_EXCLUSIVE = Mutex.new
20 MUTEX_FOR_THREAD_EXCLUSIVE.synchronize{
26 def require_relative(relative_feature)
28 e = c.rindex(/:\d+:in /)
30 if /\A\((.*)\)/ =~ file # eval, etc.
31 raise LoadError, "require_relative is called in #{$1}"
33 absolute_feature = File.expand_path(File.join(File.dirname(file), relative_feature))
34 require absolute_feature