Index: runtime/bin/thread_fuchsia.cc |
diff --git a/runtime/bin/thread_fuchsia.cc b/runtime/bin/thread_fuchsia.cc |
index 57f4cd028860f26791b628ba613543d0ca13c03c..fa5397ff131e138c50e7436be8be23242c9d1bf5 100644 |
--- a/runtime/bin/thread_fuchsia.cc |
+++ b/runtime/bin/thread_fuchsia.cc |
@@ -8,9 +8,9 @@ |
#include "bin/thread.h" |
#include "bin/thread_fuchsia.h" |
-#include <errno.h> // NOLINT |
+#include <errno.h> // NOLINT |
#include <sys/resource.h> // NOLINT |
-#include <sys/time.h> // NOLINT |
+#include <sys/time.h> // NOLINT |
#include "platform/assert.h" |
#include "platform/utils.h" |
@@ -18,29 +18,28 @@ |
namespace dart { |
namespace bin { |
-#define VALIDATE_PTHREAD_RESULT(result) \ |
- if (result != 0) { \ |
- const int kBufferSize = 1024; \ |
- char error_buf[kBufferSize]; \ |
- FATAL2("pthread error: %d (%s)", result, \ |
- Utils::StrError(result, error_buf, kBufferSize)); \ |
+#define VALIDATE_PTHREAD_RESULT(result) \ |
+ if (result != 0) { \ |
+ const int kBufferSize = 1024; \ |
+ char error_buf[kBufferSize]; \ |
+ FATAL2("pthread error: %d (%s)", result, \ |
+ Utils::StrError(result, error_buf, kBufferSize)); \ |
} |
#ifdef DEBUG |
-#define RETURN_ON_PTHREAD_FAILURE(result) \ |
- if (result != 0) { \ |
- const int kBufferSize = 1024; \ |
- char error_buf[kBufferSize]; \ |
- fprintf(stderr, "%s:%d: pthread error: %d (%s)\n", \ |
- __FILE__, __LINE__, result, \ |
- Utils::StrError(result, error_buf, kBufferSize)); \ |
- return result; \ |
+#define RETURN_ON_PTHREAD_FAILURE(result) \ |
+ if (result != 0) { \ |
+ const int kBufferSize = 1024; \ |
+ char error_buf[kBufferSize]; \ |
+ fprintf(stderr, "%s:%d: pthread error: %d (%s)\n", __FILE__, __LINE__, \ |
+ result, Utils::StrError(result, error_buf, kBufferSize)); \ |
+ return result; \ |
} |
#else |
-#define RETURN_ON_PTHREAD_FAILURE(result) \ |
- if (result != 0) { \ |
- return result; \ |
+#define RETURN_ON_PTHREAD_FAILURE(result) \ |
+ if (result != 0) { \ |
+ return result; \ |
} |
#endif |
@@ -62,8 +61,7 @@ static void ComputeTimeSpecMicros(struct timespec* ts, int64_t micros) { |
class ThreadStartData { |
public: |
- ThreadStartData(Thread::ThreadStartFunction function, |
- uword parameter) |
+ ThreadStartData(Thread::ThreadStartFunction function, uword parameter) |
: function_(function), parameter_(parameter) {} |
Thread::ThreadStartFunction function() const { return function_; } |