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

Unified Diff: runtime/vm/thread_interrupter_macos.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months 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_interrupter_linux.cc ('k') | runtime/vm/thread_interrupter_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_interrupter_macos.cc
diff --git a/runtime/vm/thread_interrupter_macos.cc b/runtime/vm/thread_interrupter_macos.cc
index 746c1a2a8a6cdbe26d287dbf6b52485ef00215a6..c8108aab9f7a33f09a15007ab6e17cb26a36b170 100644
--- a/runtime/vm/thread_interrupter_macos.cc
+++ b/runtime/vm/thread_interrupter_macos.cc
@@ -5,12 +5,12 @@
#include "platform/globals.h"
#if defined(HOST_OS_MACOS)
-#include <errno.h> // NOLINT
#include <assert.h> // NOLINT
+#include <errno.h> // NOLINT
#include <stdbool.h> // NOLINT
+#include <sys/sysctl.h> // NOLINT
#include <sys/types.h> // NOLINT
#include <unistd.h> // NOLINT
-#include <sys/sysctl.h> // NOLINT
#include "vm/flags.h"
#include "vm/os.h"
@@ -71,7 +71,6 @@ class ThreadInterrupterMacOS : public AllStatic {
}
};
-
void ThreadInterrupter::InterruptThread(OSThread* thread) {
if (FLAG_trace_thread_interrupter) {
OS::PrintErr("ThreadInterrupter interrupting %p\n", thread->id());
@@ -80,13 +79,11 @@ void ThreadInterrupter::InterruptThread(OSThread* thread) {
ASSERT((result == 0) || (result == ESRCH));
}
-
void ThreadInterrupter::InstallSignalHandler() {
SignalHandler::Install<
ThreadInterrupterMacOS::ThreadInterruptSignalHandler>();
}
-
void ThreadInterrupter::RemoveSignalHandler() {
SignalHandler::Remove();
}
« no previous file with comments | « runtime/vm/thread_interrupter_linux.cc ('k') | runtime/vm/thread_interrupter_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698