Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(895)

Unified Diff: runtime/vm/thread_interrupter.h

Issue 1423473004: Switch profiler from isolates to threads [second landing] (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/thread.cc ('k') | runtime/vm/thread_interrupter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_interrupter.h
diff --git a/runtime/vm/thread_interrupter.h b/runtime/vm/thread_interrupter.h
index 9d3ccabd822df55de18c01e7541a6b1584f744bd..9a70e497c413c221977b441884a0236e600f975c 100644
--- a/runtime/vm/thread_interrupter.h
+++ b/runtime/vm/thread_interrupter.h
@@ -25,13 +25,6 @@ class ThreadInterrupter : public AllStatic {
// Wake up the thread interrupter thread.
static void WakeUp();
- // Register the currently running thread for interrupts. If the current thread
- // is already registered, callback and data will be updated.
- static void Register(ThreadInterruptCallback callback, void* data);
-
- // Unregister the currently running thread for interrupts.
- static void Unregister();
-
// Interrupt a thread.
static void InterruptThread(Thread* thread);
@@ -40,6 +33,7 @@ class ThreadInterrupter : public AllStatic {
static bool initialized_;
static bool shutdown_;
static bool thread_running_;
+ static bool woken_up_;
static ThreadJoinId interrupter_thread_id_;
static Monitor* monitor_;
static intptr_t interrupt_period_;
@@ -60,8 +54,6 @@ class ThreadInterrupter : public AllStatic {
friend class ThreadInterrupterVisitIsolates;
};
-void ThreadInterruptNoOp(const InterruptedThreadState& state, void* data);
-
} // namespace dart
#endif // VM_THREAD_INTERRUPTER_H_
« no previous file with comments | « runtime/vm/thread.cc ('k') | runtime/vm/thread_interrupter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698