Class CountingSemaphore
In: lib/facet/semaphore.rb
Parent: Object

Description

Technically a semaphore is simply an integer variable which has an execution queue associated with it.

Usage

  s = CountingSemaphore.new

  # to do

Methods

down   exclusive   new   p   signal   synchronize   up   v   wait  

Public Class methods

Public Instance methods

down()

Alias for wait

p()

Alias for wait

synchronize()

Alias for exclusive

up()

Alias for signal

v()

Alias for signal

[Validate]