Home | History | Annotate | Download | only in src

Lines Matching refs:singleton_

390 ContextSwitcher* ContextSwitcher::singleton_ = NULL;
403 if (singleton_ == NULL) {
405 singleton_ = new ContextSwitcher(every_n_ms);
406 singleton_->Start();
410 singleton_->sleep_ms_ = every_n_ms;
419 if (singleton_ != NULL) {
422 singleton_->keep_going_ = false;
423 singleton_->Join(); // Wait for the ContextSwitcher thread to exit.
425 delete(singleton_);
426 singleton_ = NULL;