Class: RactorRailsShim::NoOpLock

Inherits:
Object
  • Object
show all
Defined in:
lib/ractor_rails_shim/patches/callables.rb

Instance Method Summary collapse

Instance Method Details

#lockObject



128
# File 'lib/ractor_rails_shim/patches/callables.rb', line 128

def lock; self; end

#locked?Boolean

Returns:

  • (Boolean)


130
# File 'lib/ractor_rails_shim/patches/callables.rb', line 130

def locked?; false; end

#mon_enterObject



131
# File 'lib/ractor_rails_shim/patches/callables.rb', line 131

def mon_enter; end

#mon_exitObject



132
# File 'lib/ractor_rails_shim/patches/callables.rb', line 132

def mon_exit; end

#mon_locked?Boolean

Returns:

  • (Boolean)


133
# File 'lib/ractor_rails_shim/patches/callables.rb', line 133

def mon_locked?; false; end

#mon_synchronizeObject



127
# File 'lib/ractor_rails_shim/patches/callables.rb', line 127

def mon_synchronize; yield; end

#new_condObject



135
# File 'lib/ractor_rails_shim/patches/callables.rb', line 135

def new_cond; Struct.new(:wait, :signal, :broadcast).new(-> {}, -> {}, -> {}); end

#synchronizeObject



126
# File 'lib/ractor_rails_shim/patches/callables.rb', line 126

def synchronize; yield; end

#try_lockObject



134
# File 'lib/ractor_rails_shim/patches/callables.rb', line 134

def try_lock; true; end

#unlockObject



129
# File 'lib/ractor_rails_shim/patches/callables.rb', line 129

def unlock; self; end