Class: Sync

Inherits:
Object
  • Object
show all
Includes:
Sync_m
Defined in:
lib/sync.rb

Overview

A class that provides two-phase lock with a counter. See Sync_m for details.

Constant Summary

Constants included from Sync_m

Sync_m::EX, Sync_m::SH, Sync_m::UN

Instance Attribute Summary

Attributes included from Sync_m

#sync_ex_count, #sync_ex_locker, #sync_mode, #sync_sh_locker, #sync_upgrade_waiting, #sync_waiting

Method Summary

Methods included from Sync_m

append_features, define_aliases, extend_object, #sync_exclusive?, #sync_extend, #sync_inspect, #sync_lock, #sync_locked?, #sync_shared?, #sync_synchronize, #sync_try_lock, #sync_unlock