0.01
No commit activity in last 3 years
No release in over 3 years
A simple reentrant/recursive mutex
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
~> 2.14.1
 Project Readme

ReentrantMutex

A simple gem that implements a reentrant mutex.

Installation

  1. Install it gem install reentrant_mutex
  2. Require it require 'reentrant_mutex'
  3. 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