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

Side by Side Diff: src/base/platform/condition-variable.h

Issue 1371083003: [presubmit] Enable readability/namespace linter checking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_BASE_PLATFORM_CONDITION_VARIABLE_H_ 5 #ifndef V8_BASE_PLATFORM_CONDITION_VARIABLE_H_
6 #define V8_BASE_PLATFORM_CONDITION_VARIABLE_H_ 6 #define V8_BASE_PLATFORM_CONDITION_VARIABLE_H_
7 7
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/base/platform/mutex.h" 9 #include "src/base/platform/mutex.h"
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // void my_function() { 106 // void my_function() {
107 // LockGuard<Mutex> lock_guard(&my_mutex); 107 // LockGuard<Mutex> lock_guard(&my_mutex);
108 // my_condvar.Pointer()->Wait(&my_mutex); 108 // my_condvar.Pointer()->Wait(&my_mutex);
109 // } 109 // }
110 typedef LazyStaticInstance< 110 typedef LazyStaticInstance<
111 ConditionVariable, DefaultConstructTrait<ConditionVariable>, 111 ConditionVariable, DefaultConstructTrait<ConditionVariable>,
112 ThreadSafeInitOnceTrait>::type LazyConditionVariable; 112 ThreadSafeInitOnceTrait>::type LazyConditionVariable;
113 113
114 #define LAZY_CONDITION_VARIABLE_INITIALIZER LAZY_STATIC_INSTANCE_INITIALIZER 114 #define LAZY_CONDITION_VARIABLE_INITIALIZER LAZY_STATIC_INSTANCE_INITIALIZER
115 115
116 } } // namespace v8::base 116 } // namespace base
117 } // namespace v8
117 118
118 #endif // V8_BASE_PLATFORM_CONDITION_VARIABLE_H_ 119 #endif // V8_BASE_PLATFORM_CONDITION_VARIABLE_H_
OLDNEW
« no previous file with comments | « src/base/once.cc ('k') | src/base/platform/condition-variable.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698