aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/rack/lock.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_dispatch/rack/lock.rb')
-rw-r--r--actionpack/lib/action_dispatch/rack/lock.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/actionpack/lib/action_dispatch/rack/lock.rb b/actionpack/lib/action_dispatch/rack/lock.rb
deleted file mode 100644
index 9bf1889065..0000000000
--- a/actionpack/lib/action_dispatch/rack/lock.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-module Rack
- # Rack::Lock was commited to Rack core
- # http://github.com/rack/rack/commit/7409b0c
- # Remove this when Rack 1.0 is released
- unless defined? Lock
- class Lock
- FLAG = 'rack.multithread'.freeze
-
- def initialize(app, lock = Mutex.new)
- @app, @lock = app, lock
- end
-
- def call(env)
- old, env[FLAG] = env[FLAG], false
- @lock.synchronize { @app.call(env) }
- ensure
- env[FLAG] = old
- end
- end
- end
-end