Method: MysqlGetlock#synchronize
- Defined in:
- lib/mysql_getlock.rb
#synchronize(&block) ⇒ Object
72 73 74 75 76 77 78 79 |
# File 'lib/mysql_getlock.rb', line 72 def synchronize(&block) raise LockError unless lock begin yield ensure unlock end end |