Class | Semaphore |
In: |
lib/more/facets/semaphore.rb
|
Parent: | Object |
Technically a semaphore is simply an integer variable which has an execution queue associated with it.
# File lib/more/facets/semaphore.rb, line 31 def initialize(initvalue = 0) @counter = initvalue @waiting_list = [] end