Module: Empathy::EM
- Defined in:
- lib/empathy/em/mutex.rb,
lib/empathy/em/queue.rb,
lib/empathy/em/thread.rb,
lib/empathy/em/condition_variable.rb
Defined Under Namespace
Modules: Kernel Classes: ConditionVariable, Monitor, Mutex, ProxyThread, Queue, Thread
Constant Summary collapse
- ThreadError =
Thread like errors are actually raw Fiber errors
::FiberError
Class Method Summary collapse
-
.empathise(*modules) ⇒ void
Create alias constants in each of the supplied modules so that code within those modules will use modules from the Empathy::EM namespace instead of the native ruby ones.
Class Method Details
.empathise(*modules) ⇒ void
This method returns an undefined value.
Create alias constants in each of the supplied modules so that code within those modules will use modules from the Empathy::EM namespace instead of the native ruby ones
Also monkey patches Object to provide EM safe Kernel methods
20 21 22 23 24 |
# File 'lib/empathy/em/thread.rb', line 20 def self.empathise(*modules) modules.each do |m| Empathy::map_classes(m,self) end end |