Module: RubyBox::ThreadSafety

Extended by:
ActiveSupport::Concern
Included in:
Metal
Defined in:
lib/ruby_box/thread_safety.rb

Constant Summary collapse

SEMAPHORE =
Mutex.new

Instance Method Summary collapse

Instance Method Details

#builderObject



69
70
71
# File 'lib/ruby_box/thread_safety.rb', line 69

def builder
  synchronize { super }
end

#executeObject



73
74
75
# File 'lib/ruby_box/thread_safety.rb', line 73

def execute(*)
  synchronize { super }
end

#maximum_execution_timeObject



65
66
67
# File 'lib/ruby_box/thread_safety.rb', line 65

def maximum_execution_time
  synchronize { super }
end

#stderrObject



81
82
83
# File 'lib/ruby_box/thread_safety.rb', line 81

def stderr
  synchronize { super }
end

#stdoutObject



77
78
79
# File 'lib/ruby_box/thread_safety.rb', line 77

def stdout
  synchronize { super }
end