Class: Monitor (Ruby 2.2.4)
Description: Class : Monitor - Ruby 2.2.4

- Home
- Core 2.2.4
- Std-lib 2.2.4
- Downloads

Support for the Ruby 2.2 series has ended. See here for reference.

### Home Classes Methods

### In Files

- monitor.rb

### Parent

Object

### Included Modules

- MonitorMixin

### Class/Module Index

Quicksearch

- Monitor
- MonitorMixin
- MonitorMixin::ConditionVariable
- MonitorMixin::ConditionVariable::Timeout

No matching classes.

# Monitor

Use the Monitor class when you want to have a lock object for blocks with mutual exclusion.

    require 'monitor'

    lock = Monitor.new
    lock.synchronize do
      # exclusive access
    end