Class FSDB::Modex
In: lib/fsdb/modex.rb
Parent: Object

Modex is a modal exclusion semaphore, like in syncronizer.rb. The two modes are shared (SH) and exclusive (EX). Modex is not nestable.

Methods

lock   new   synchronize   try_lock   unlock  

Classes and Modules

Module FSDB::Modex::ForkSafely

Constants

SH = :SH
EX = :EX

Public Class methods

Public Instance methods

the block is executed in the exclusive context

the block is executed in the exclusive context

[Validate]