lib/polyphony/core/sync.rb
# Helper method for performing a `#synchronize` when not currently holding
# the mutex.
#
# @return [any] return value of given block.
Helper method for performing a `#synchronize` when not currently holding
the mutex.
Helper method for performing a ` #synchronize ` when not currently holding the mutex .
def synchronize_not_holding
      @token = @store.shift
      begin
        @holding_fiber = Fiber.current
        yield
      ensure
        @holding_fiber = nil
        @store << @token if @token
      end
    end
def synchronize_not_holding @token = @store . shift begin @holding_fiber = Fiber . current yield ensure @holding_fiber = nil @store << @token if @token end end
Helper method for performing a `#synchronize` when not currently holding
the mutex.
Helper method for performing a ` #synchronize ` when not currently holding the mutex .
return value of given block.
return value of given block .
any