Class: Contender::CopyOnWriteSet

Inherits:
Object
  • Object
show all
Includes:
CopyOnWriteStructure, Enumerable
Defined in:
lib/contender/copy_on_write_set.rb

Overview

Set that uses copy-on-write to guarantee thread safety

Use this when read throughput is the primary requirement; write operations will always be slow due to the need to create a shallow copy of the set to perform operations on.

Method Summary

Methods included from CopyOnWriteStructure

included, #initialize