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

Unified Diff: runtime/bin/thread_linux.cc

Issue 1800863002: Cleanup in //runtime/bin (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/bin/thread_android.cc ('k') | runtime/bin/thread_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/thread_linux.cc
diff --git a/runtime/bin/thread_linux.cc b/runtime/bin/thread_linux.cc
index 1e01a7788acd7d48356802d2838a0b0d46d012eb..7a2a92acdb02c09f2201d7a2f854a85729f2cc30 100644
--- a/runtime/bin/thread_linux.cc
+++ b/runtime/bin/thread_linux.cc
@@ -6,6 +6,7 @@
#if defined(TARGET_OS_LINUX)
#include "bin/thread.h"
+#include "bin/thread_linux.h"
#include <errno.h> // NOLINT
#include <sys/resource.h> // NOLINT
@@ -38,7 +39,9 @@ namespace bin {
}
#else
#define RETURN_ON_PTHREAD_FAILURE(result) \
- if (result != 0) return result;
+ if (result != 0) { \
+ return result; \
+ }
#endif
@@ -165,7 +168,7 @@ intptr_t Thread::ThreadIdToIntPtr(ThreadId id) {
bool Thread::Compare(ThreadId a, ThreadId b) {
- return pthread_equal(a, b) != 0;
+ return (pthread_equal(a, b) != 0);
}
« no previous file with comments | « runtime/bin/thread_android.cc ('k') | runtime/bin/thread_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698