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

Unified Diff: runtime/vm/lockers.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/locations.cc ('k') | runtime/vm/lockers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/lockers.h
diff --git a/runtime/vm/lockers.h b/runtime/vm/lockers.h
index 1ffe532c25db17b5dfe893f194956ea7cf6ab3d5..d16c77e775c1cf493ce983b56b79300cc314c2a5 100644
--- a/runtime/vm/lockers.h
+++ b/runtime/vm/lockers.h
@@ -170,19 +170,16 @@ class MonitorLocker : public ValueObject {
}
Monitor::WaitResult WaitWithSafepointCheck(
- Thread* thread, int64_t millis = Monitor::kNoTimeout);
+ Thread* thread,
+ int64_t millis = Monitor::kNoTimeout);
Monitor::WaitResult WaitMicros(int64_t micros = Monitor::kNoTimeout) {
return monitor_->WaitMicros(micros);
}
- void Notify() {
- monitor_->Notify();
- }
+ void Notify() { monitor_->Notify(); }
- void NotifyAll() {
- monitor_->NotifyAll();
- }
+ void NotifyAll() { monitor_->NotifyAll(); }
private:
Monitor* const monitor_;
@@ -212,9 +209,7 @@ class MonitorLocker : public ValueObject {
class SafepointMutexLocker : public ValueObject {
public:
explicit SafepointMutexLocker(Mutex* mutex);
- virtual ~SafepointMutexLocker() {
- mutex_->Unlock();
- }
+ virtual ~SafepointMutexLocker() { mutex_->Unlock(); }
private:
Mutex* const mutex_;
@@ -243,9 +238,7 @@ class SafepointMutexLocker : public ValueObject {
class SafepointMonitorLocker : public ValueObject {
public:
explicit SafepointMonitorLocker(Monitor* monitor);
- virtual ~SafepointMonitorLocker() {
- monitor_->Exit();
- }
+ virtual ~SafepointMonitorLocker() { monitor_->Exit(); }
Monitor::WaitResult Wait(int64_t millis = Monitor::kNoTimeout);
« no previous file with comments | « runtime/vm/locations.cc ('k') | runtime/vm/lockers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698