Class N::SafeHash
In: lib/glue/hash.rb
Parent: Hash

SafeHash

A thread-safe hash. We use a sync object instead of a mutex, because it is re-entrant. An exclusive lock is needed when writing, a shared lock IS NEEDED when reading uses the delegator pattern to allow for multiple implementations!

Methods

[]   []=   clear   delete   keys   new   size   values  

Attributes

sync  [R] 

Public Class methods

gmosx: delegator is not used.

Public Instance methods

[Validate]