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

Unified Diff: runtime/vm/os_thread.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 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/os_thread.h ('k') | runtime/vm/os_thread_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_thread.cc
diff --git a/runtime/vm/os_thread.cc b/runtime/vm/os_thread.cc
index 3700c9f0ca1c01a62bf11924d51a7a3b2ed917f3..f5818a25444fdab503e5c4a9f4528abf1b3834d0 100644
--- a/runtime/vm/os_thread.cc
+++ b/runtime/vm/os_thread.cc
@@ -20,23 +20,23 @@ Mutex* OSThread::thread_list_lock_ = NULL;
bool OSThread::creation_enabled_ = false;
-OSThread::OSThread() :
- BaseThread(true),
- id_(OSThread::GetCurrentThreadId()),
+OSThread::OSThread()
+ : BaseThread(true),
+ id_(OSThread::GetCurrentThreadId()),
#if defined(DEBUG)
- join_id_(kInvalidThreadJoinId),
+ join_id_(kInvalidThreadJoinId),
#endif
#ifndef PRODUCT
- trace_id_(OSThread::GetCurrentThreadTraceId()),
+ trace_id_(OSThread::GetCurrentThreadTraceId()),
#endif
- name_(NULL),
- timeline_block_lock_(new Mutex()),
- timeline_block_(NULL),
- thread_list_next_(NULL),
- thread_interrupt_disabled_(1), // Thread interrupts disabled by default.
- log_(new class Log()),
- stack_base_(0),
- thread_(NULL) {
+ name_(NULL),
+ timeline_block_lock_(new Mutex()),
+ timeline_block_(NULL),
+ thread_list_next_(NULL),
+ thread_interrupt_disabled_(1), // Thread interrupts disabled by default.
+ log_(new class Log()),
+ stack_base_(0),
+ thread_(NULL) {
}
@@ -67,7 +67,6 @@ OSThread::~OSThread() {
}
-
void OSThread::SetName(const char* name) {
MutexLocker ml(thread_list_lock_);
// Clear the old thread name.
@@ -135,8 +134,8 @@ void OSThread::InitOnce() {
void OSThread::Cleanup() {
- // We cannot delete the thread local key and thread list lock, yet.
- // See the note on thread_list_lock_ in os_thread.h.
+// We cannot delete the thread local key and thread list lock, yet.
+// See the note on thread_list_lock_ in os_thread.h.
#if 0
if (thread_list_lock_ != NULL) {
// Delete the thread local key.
@@ -243,7 +242,7 @@ void OSThread::RemoveThreadFromList(OSThread* thread) {
previous->thread_list_next_ = current->thread_list_next_;
}
thread->thread_list_next_ = NULL;
- final_thread = !creation_enabled_ && (thread_list_head_ == NULL);
+ final_thread = !creation_enabled_ && (thread_list_head_ == NULL);
break;
}
previous = current;
« no previous file with comments | « runtime/vm/os_thread.h ('k') | runtime/vm/os_thread_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698