Created
July 21, 2013 08:07
-
-
Save dkubb/6047881 to your computer and use it in GitHub Desktop.
Ruby Thread-safe Set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'thread_safe' | |
module ThreadSafe | |
class Set < ::Set | |
def initialize(*) | |
@hash = Hash.new | |
super | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment