Module: Tribe

Defined in:
lib/tribe/safe_set.rb,
lib/tribe.rb,
lib/tribe/actor.rb,
lib/tribe/event.rb,
lib/tribe/future.rb,
lib/tribe/actable.rb,
lib/tribe/mailbox.rb,
lib/tribe/version.rb,
lib/tribe/registry.rb,
lib/tribe/exceptions.rb,
lib/tribe/actor_state.rb,
lib/tribe/dedicated_actor.rb,
lib/tribe/benchmark/throughput.rb

Overview

Ruby’s built in Set class may not be thread safe. This class wraps each method to make it so. More methods will be wrapped as needed.

Defined Under Namespace

Modules: Actable, Benchmark Classes: Actor, ActorNameError, ActorShutdownError, ActorState, DedicatedActor, Event, Future, FutureError, Mailbox, Registry, RegistryError, SafeSet

Constant Summary collapse

VERSION =
'0.3.1'

Class Method Summary collapse

Class Method Details

.registryObject



17
18
19
# File 'lib/tribe.rb', line 17

def self.registry
  return @registry ||= Tribe::Registry.new
end

.registry=(val) ⇒ Object



21
22
23
24
# File 'lib/tribe.rb', line 21

def self.registry=(val)
  @registry.dispose if @registry
  @registry = val
end