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

Unified Diff: runtime/vm/os_thread.h

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_macos.cc ('k') | runtime/vm/os_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_thread.h
diff --git a/runtime/vm/os_thread.h b/runtime/vm/os_thread.h
index 00fad7cb5267267c2a9b45b16a938eeddb8f0b50..da298316dd60bd29c673b2754365830eaa462ad1 100644
--- a/runtime/vm/os_thread.h
+++ b/runtime/vm/os_thread.h
@@ -70,9 +70,7 @@ class OSThread : public BaseThread {
}
#endif
- const char* name() const {
- return name_;
- }
+ const char* name() const { return name_; }
void SetName(const char* name);
@@ -83,14 +81,10 @@ class OSThread : public BaseThread {
name_ = strdup(name);
}
- Mutex* timeline_block_lock() const {
- return timeline_block_lock_;
- }
+ Mutex* timeline_block_lock() const { return timeline_block_lock_; }
// Only safe to access when holding |timeline_block_lock_|.
- TimelineEventBlock* timeline_block() const {
- return timeline_block_;
- }
+ TimelineEventBlock* timeline_block() const { return timeline_block_; }
// Only safe to access when holding |timeline_block_lock_|.
void set_timeline_block(TimelineEventBlock* block) {
@@ -147,18 +141,17 @@ class OSThread : public BaseThread {
static BaseThread* GetCurrentTLS() {
return reinterpret_cast<BaseThread*>(OSThread::GetThreadLocal(thread_key_));
}
- static void SetCurrentTLS(uword value) {
- SetThreadLocal(thread_key_, value);
- }
+ static void SetCurrentTLS(uword value) { SetThreadLocal(thread_key_, value); }
- typedef void (*ThreadStartFunction) (uword parameter);
- typedef void (*ThreadDestructor) (void* parameter);
+ typedef void (*ThreadStartFunction)(uword parameter);
+ typedef void (*ThreadDestructor)(void* parameter);
// Start a thread running the specified function. Returns 0 if the
// thread started successfuly and a system specific error code if
// the thread failed to start.
- static int Start(
- const char* name, ThreadStartFunction function, uword parameter);
+ static int Start(const char* name,
+ ThreadStartFunction function,
+ uword parameter);
static ThreadLocalKey CreateThreadLocal(ThreadDestructor destructor = NULL);
static void DeleteThreadLocal(ThreadLocalKey key);
@@ -202,9 +195,7 @@ class OSThread : public BaseThread {
// We could eliminate this requirement if the windows thread interrupter
// is implemented differently.
Thread* thread() const { return thread_; }
- void set_thread(Thread* value) {
- thread_ = value;
- }
+ void set_thread(Thread* value) { thread_ = value; }
static void Cleanup();
#ifndef PRODUCT
@@ -311,10 +302,7 @@ class Mutex {
class Monitor {
public:
- enum WaitResult {
- kNotified,
- kTimedOut
- };
+ enum WaitResult { kNotified, kTimedOut };
static const int64_t kNoTimeout = 0;
« no previous file with comments | « runtime/vm/os_macos.cc ('k') | runtime/vm/os_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698