private Method

SingletonClassMethods._instantiate?

waiting-loop hook

Source Code

# File singleton.rb, line 147
def _instantiate?()
  while false.equal?(@__instance__)
    Thread.critical = false
    sleep(0.08)   # timeout
    Thread.critical = true
  end
  @__instance__
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.