Method: Arrow::Session::Lock#read_unlock
- Defined in:
- lib/arrow/session/lock.rb
#read_unlock ⇒ Object
Give up a read (shared) lock. Raises an exception if no read lock has been acquired.
165 166 167 168 169 170 171 |
# File 'lib/arrow/session/lock.rb', line 165 def read_unlock raise Arrow::LockingError, "No read lock to release" unless self.read_locked? self.log.debug "Releasing read lock" self.release_read_lock @status &= ( @status ^ READ ) end |