Searched defs:ContextSwitcher (Results 1 - 2 of 2) sorted by relevance

/external/v8/src/
H A Dv8threads.h139 // The ContextSwitcher thread is used to schedule regular preemptions to
143 class ContextSwitcher: public Thread { class in namespace:v8::internal
145 // Set the preemption interval for the ContextSwitcher thread.
151 // Preempted thread needs to call back to the ContextSwitcher to acknowledge
156 ContextSwitcher(Isolate* isolate, int every_n_ms);
H A Dv8threads.cc143 v8::internal::ContextSwitcher::StartPreemption(every_n_ms);
148 v8::internal::ContextSwitcher::StopPreemption();
410 ContextSwitcher::ContextSwitcher(Isolate* isolate, int every_n_ms) function in class:v8::internal::ContextSwitcher
419 // ContextSwitcher thread if needed.
420 void ContextSwitcher::StartPreemption(int every_n_ms) {
424 // If the ContextSwitcher thread is not running at the moment start it now.
425 isolate->set_context_switcher(new ContextSwitcher(isolate, every_n_ms));
428 // ContextSwitcher thread is already running, so we just change the
437 void ContextSwitcher
[all...]

Completed in 398 milliseconds