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

Side by Side Diff: src/base/once.cc

Issue 1371083003: [presubmit] Enable readability/namespace linter checking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. 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
« no previous file with comments | « src/base/once.h ('k') | src/base/platform/condition-variable.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #include "src/base/once.h" 5 #include "src/base/once.h"
6 6
7 #ifdef _WIN32 7 #ifdef _WIN32
8 #include <windows.h> 8 #include <windows.h>
9 #else 9 #else
10 #include <sched.h> 10 #include <sched.h>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #ifdef _WIN32 43 #ifdef _WIN32
44 ::Sleep(0); 44 ::Sleep(0);
45 #else 45 #else
46 sched_yield(); 46 sched_yield();
47 #endif 47 #endif
48 state = Acquire_Load(once); 48 state = Acquire_Load(once);
49 } 49 }
50 } 50 }
51 } 51 }
52 52
53 } } // namespace v8::base 53 } // namespace base
54 } // namespace v8
OLDNEW
« no previous file with comments | « src/base/once.h ('k') | src/base/platform/condition-variable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698