Method: Arrow::Session::Lock#write_unlock
- Defined in:
- lib/arrow/session/lock.rb
#write_unlock ⇒ Object
Release a write (exclusive) lock. Raises an exception if no write lock has been acquired.
176 177 178 179 180 181 182 |
# File 'lib/arrow/session/lock.rb', line 176 def write_unlock raise Arrow::LockingError, "No write lock to release" unless self.write_locked? self.log.debug "Releasing write lock" self.release_write_lock @status &= ( @status ^ WRITE ) end |