module RubyBox::ThreadSafety

Constants

SEMAPHORE

Public Instance Methods

bindings() click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 26
def bindings
  synchronize { super }
end
binds(*) click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 48
def binds(*)
  synchronize { super }
end
builder() click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 18
def builder
  synchronize { super }
end
execute(*) click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 73
def execute(*)
  synchronize { super }
end
executes(*) click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 44
def executes(*)
  synchronize { super }
end
exposes(*) click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 52
def exposes(*)
  synchronize { super }
end
maximum_execution_time() click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 14
def maximum_execution_time
  synchronize { super }
end
monitor() click to toggle source
# File lib/ruby_box/thread_safety.rb, line 60
def monitor
  SEMAPHORE.synchronize { @monitor ||= Monitor.new }
end
requires(*) click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 40
def requires(*)
  synchronize { super }
end
snapshot() click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 22
def snapshot
  synchronize { super }
end
stderr() click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 81
def stderr
  synchronize { super }
end
stdout() click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 77
def stdout
  synchronize { super }
end
synchronize() { || ... } click to toggle source
# File lib/ruby_box/thread_safety.rb, line 56
def synchronize
  monitor.synchronize { yield }
end
times_out_in(*) click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 32
def times_out_in(*)
  synchronize { super }
end
uses(*) click to toggle source
Calls superclass method
# File lib/ruby_box/thread_safety.rb, line 36
def uses(*)
  synchronize { super }
end