Class: RactorRailsShim::NoOpLock
- Inherits:
-
Object
- Object
- RactorRailsShim::NoOpLock
- Defined in:
- lib/ractor_rails_shim/patches/callables.rb
Instance Method Summary collapse
- #lock ⇒ Object
- #locked? ⇒ Boolean
- #mon_enter ⇒ Object
- #mon_exit ⇒ Object
- #mon_locked? ⇒ Boolean
- #mon_synchronize ⇒ Object
- #new_cond ⇒ Object
- #synchronize ⇒ Object
- #try_lock ⇒ Object
- #unlock ⇒ Object
Instance Method Details
#lock ⇒ Object
128 |
# File 'lib/ractor_rails_shim/patches/callables.rb', line 128 def lock; self; end |
#locked? ⇒ Boolean
130 |
# File 'lib/ractor_rails_shim/patches/callables.rb', line 130 def locked?; false; end |
#mon_enter ⇒ Object
131 |
# File 'lib/ractor_rails_shim/patches/callables.rb', line 131 def mon_enter; end |
#mon_exit ⇒ Object
132 |
# File 'lib/ractor_rails_shim/patches/callables.rb', line 132 def mon_exit; end |
#mon_locked? ⇒ Boolean
133 |
# File 'lib/ractor_rails_shim/patches/callables.rb', line 133 def mon_locked?; false; end |
#mon_synchronize ⇒ Object
127 |
# File 'lib/ractor_rails_shim/patches/callables.rb', line 127 def mon_synchronize; yield; end |
#new_cond ⇒ Object
135 |
# File 'lib/ractor_rails_shim/patches/callables.rb', line 135 def new_cond; Struct.new(:wait, :signal, :broadcast).new(-> {}, -> {}, -> {}); end |
#synchronize ⇒ Object
126 |
# File 'lib/ractor_rails_shim/patches/callables.rb', line 126 def synchronize; yield; end |
#try_lock ⇒ Object
134 |
# File 'lib/ractor_rails_shim/patches/callables.rb', line 134 def try_lock; true; end |
#unlock ⇒ Object
129 |
# File 'lib/ractor_rails_shim/patches/callables.rb', line 129 def unlock; self; end |