Class: Rack::Lock
- Inherits:
-
Object
- Object
- Rack::Lock
- Defined in:
- lib/rack/lock.rb
Defined Under Namespace
Classes: Proxy
Constant Summary collapse
- FLAG =
'rack.multithread'.freeze
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, mutex = Mutex.new) ⇒ Lock
constructor
A new instance of Lock.
Constructor Details
#initialize(app, mutex = Mutex.new) ⇒ Lock
Returns a new instance of Lock.
27 28 29 |
# File 'lib/rack/lock.rb', line 27 def initialize(app, mutex = Mutex.new) @app, @mutex = app, mutex end |