Class: Concurrent::Synchronization::Object
- Inherits:
-
Implementation
- Object
- Concurrent::Synchronization::Object
- Defined in:
- lib/concurrent/synchronization/object.rb,
lib/concurrent/synchronization/condition.rb
Overview
Note:
this object does not support usage together with
Thread#wakeup
and Thread#raise.
Thread#sleep and Thread#wakeup will work as expected but mixing Synchronization::Object#wait and
Thread#wakeup will not work on all platforms.
Safe synchronization under any Ruby implementation. It provides methods like #synchronize, #wait, #signal and #broadcast. Provides a single layer which can improve its implementation over time without changes needed to the classes using it. Use Object not this abstract class.
Direct Known Subclasses
Atom, Collection::CopyOnNotifyObserverSet, Collection::CopyOnWriteObserverSet, CyclicBarrier, Delay, Event, IVar, ReadWriteLock, Concurrent::SafeTaskExecutor, Concurrent::SerializedExecution, Condition, Lock