Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make cache and values fully thread-safe
Not locking the default initialization can lead to race-conditions. Note: not sure if I should use one or two mutexes as I am not familiar with this code enough to make the judgment. ref: ruby-concurrency/concurrent-ruby#970
- Loading branch information