Home | History | Annotate | Download | only in src

Lines Matching defs:ContextSwitcher

115   v8::internal::ContextSwitcher::StartPreemption(every_n_ms);
120 v8::internal::ContextSwitcher::StopPreemption();
388 // This is the ContextSwitcher singleton. There is at most a single thread
390 ContextSwitcher* ContextSwitcher::singleton_ = NULL;
393 ContextSwitcher::ContextSwitcher(int every_n_ms)
400 // ContextSwitcher thread if needed.
401 void ContextSwitcher::StartPreemption(int every_n_ms) {
404 // If the ContextSwitcher thread is not running at the moment start it now.
405 singleton_ = new ContextSwitcher(every_n_ms);
408 // ContextSwitcher thread is already running, so we just change the
417 void ContextSwitcher::StopPreemption() {
420 // The ContextSwitcher thread is running. We need to stop it and release
423 singleton_->Join(); // Wait for the ContextSwitcher thread to exit.
431 // Main loop of the ContextSwitcher thread: Preempt the currently running V8
433 void ContextSwitcher::Run() {
442 void ContextSwitcher::PreemptionReceived() {