Module
Class Methods
No documentation available

Use extend MonitorMixin or include MonitorMixin instead of this constructor. Have look at the examples above to understand how to use this module.

Instance Methods
No documentation available

Enters exclusive section.

Leaves exclusive section.

Initializes the MonitorMixin after being included in a class or when an object has been extended with the MonitorMixin

Returns true if this monitor is locked by any thread

Returns true if this monitor is locked by current thread.

Enters exclusive section and executes the block. Leaves the exclusive section automatically when the block exits. See example under MonitorMixin.

Attempts to enter exclusive section. Returns false if lock fails.

Creates a new MonitorMixin::ConditionVariable associated with the Monitor object.

An alias for mon_synchronize
An alias for mon_try_enter