Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a 'standard' read/write lock implementation for ruby?

Does anyone know of an existing ruby implementation of a read/write lock - http://en.wikipedia.org/wiki/Readers-writer_lock?

Preferably this would be in a popular library or some other implementation that's been used by enough people that it's fairly bulletproof at this point.

like image 762
Pete Hodgson Avatar asked Oct 22 '25 06:10

Pete Hodgson


1 Answers

There isn't a standard one to my knowledge, but they aren't terribly hard to write. Failing that, this guy has already written one. It looks right and he's provided tests.

like image 52
Pesto Avatar answered Oct 23 '25 19:10

Pesto



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!