ReentrantMutex
A simple gem that implements a reentrant mutex.
Installation
- Install it
gem install reentrant_mutex
- Require it
require 'reentrant_mutex'
- Use it
Usage
This works exactly like a normal mutex except that you can lock a mutex you already have locked.
require 'reentrant_mutex'
mutex = ReentrantMutex.new
mutex.synchronize do
# . . .
end