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

Unified Diff: runtime/bin/lockers.h

Issue 2480793002: clang-format runtime/bin (Closed)
Patch Set: 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/bin/loader.cc ('k') | runtime/bin/log_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/lockers.h
diff --git a/runtime/bin/lockers.h b/runtime/bin/lockers.h
index 836eedaa9ec130502894ae53b50107c63f14dcbf..83dd0bdee45667331a20868344e13df1e658861e 100644
--- a/runtime/bin/lockers.h
+++ b/runtime/bin/lockers.h
@@ -11,16 +11,14 @@
namespace dart {
namespace bin {
-class MutexLocker {
+class MutexLocker {
public:
explicit MutexLocker(Mutex* mutex) : mutex_(mutex) {
ASSERT(mutex != NULL);
mutex_->Lock();
}
- virtual ~MutexLocker() {
- mutex_->Unlock();
- }
+ virtual ~MutexLocker() { mutex_->Unlock(); }
private:
Mutex* const mutex_;
@@ -36,21 +34,15 @@ class MonitorLocker {
monitor_->Enter();
}
- virtual ~MonitorLocker() {
- monitor_->Exit();
- }
+ virtual ~MonitorLocker() { monitor_->Exit(); }
Monitor::WaitResult Wait(int64_t millis = Monitor::kNoTimeout) {
return monitor_->Wait(millis);
}
- void Notify() {
- monitor_->Notify();
- }
+ void Notify() { monitor_->Notify(); }
- void NotifyAll() {
- monitor_->NotifyAll();
- }
+ void NotifyAll() { monitor_->NotifyAll(); }
private:
Monitor* const monitor_;
« no previous file with comments | « runtime/bin/loader.cc ('k') | runtime/bin/log_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698