Esempio n. 1
0
 /**
  * Creates a singleton instance (if needed) and returns it.
  *
  * @access public
  * @return void
  */
 public static function singleton()
 {
     if (empty(self::$_instance)) {
         self::$_instance = new IOLoop();
     }
     return self::$_instance;
 }