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

Side by Side Diff: src/base/platform/semaphore.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_SEMAPHORE_H_ 5 #ifndef V8_BASE_PLATFORM_SEMAPHORE_H_
6 #define V8_BASE_PLATFORM_SEMAPHORE_H_ 6 #define V8_BASE_PLATFORM_SEMAPHORE_H_
7 7
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #if V8_OS_WIN 9 #if V8_OS_WIN
10 #include "src/base/win32-headers.h" 10 #include "src/base/win32-headers.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 }; 89 };
90 90
91 template <int N> 91 template <int N>
92 struct LazySemaphore { 92 struct LazySemaphore {
93 typedef typename LazyDynamicInstance<Semaphore, CreateSemaphoreTrait<N>, 93 typedef typename LazyDynamicInstance<Semaphore, CreateSemaphoreTrait<N>,
94 ThreadSafeInitOnceTrait>::type type; 94 ThreadSafeInitOnceTrait>::type type;
95 }; 95 };
96 96
97 #define LAZY_SEMAPHORE_INITIALIZER LAZY_DYNAMIC_INSTANCE_INITIALIZER 97 #define LAZY_SEMAPHORE_INITIALIZER LAZY_DYNAMIC_INSTANCE_INITIALIZER
98 98
99 } } // namespace v8::base 99 } // namespace base
100 } // namespace v8
100 101
101 #endif // V8_BASE_PLATFORM_SEMAPHORE_H_ 102 #endif // V8_BASE_PLATFORM_SEMAPHORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698