couchrest/couchrest — pull request #88 by ferrous26 (2012-09-10 04:12:21+00:00)
Title: Synchronize access to Server#next_uuid

In threaded environments, multiple threads might be requesting a UUID at the same time.

This causes problems on JRuby where Array objects are not thread safe and calling
#pop was returning the same value to multiple threads!