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

Usage

  s = CountingSemaphore.new

  TODO

Author(s)

  • fukumoto
Methods
Public Class methods
new(initvalue = 0) [ source ]
Public Instance methods
down()

Alias for wait

exclusive() {|| ...} [ source ]
This method is also aliased as synchronize
p()

Alias for wait

signal() [ source ]
This method is also aliased as up v
synchronize()

Alias for exclusive

up()

Alias for signal

v()

Alias for signal

wait() [ source ]
This method is also aliased as down p