Module: Corkscrews::Primitives
- Defined in:
- lib/corkscrews/primitives.rb
Defined Under Namespace
Modules: CondVarStamp, IOWait, KernelWait, MutexStamp, QueueStamp
Class Method Summary collapse
Class Method Details
.install! ⇒ Object
116 117 118 119 120 121 122 123 124 125 |
# File 'lib/corkscrews/primitives.rb', line 116 def self.install! Mutex.prepend MutexStamp unless Mutex.ancestors.include?(MutexStamp) Thread::Queue.prepend QueueStamp unless Thread::Queue.ancestors.include?(QueueStamp) Thread::SizedQueue.prepend QueueStamp unless Thread::SizedQueue.ancestors.include?(QueueStamp) Queue.prepend QueueStamp if defined?(Queue) && !Queue.ancestors.include?(QueueStamp) SizedQueue.prepend QueueStamp if defined?(SizedQueue) && !SizedQueue.ancestors.include?(QueueStamp) Thread::ConditionVariable.prepend CondVarStamp unless Thread::ConditionVariable.ancestors.include?(CondVarStamp) Kernel.prepend KernelWait unless Kernel.ancestors.include?(KernelWait) IO.prepend IOWait unless IO.ancestors.include?(IOWait) end |