Module: Tribe

Defined in:
lib/tribe/safe_set.rb,
lib/tribe.rb,
lib/tribe/root.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, ActorChildDied, ActorNameError, ActorParentDied, ActorReservedCommand, ActorShutdownError, ActorState, DedicatedActor, Event, Future, FutureError, FutureNoResult, FutureTimeout, Mailbox, Registry, RegistryError, Root, SafeSet, TribeError

Constant Summary collapse

VERSION =
'0.6.1'

Class Method Summary collapse

Class Method Details

.registryObject



19
20
21
# File 'lib/tribe.rb', line 19

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

.rootObject



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

def self.root
  @root ||= Tribe::Root.new(:name => 'root', :permit_root => true)
end