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

Side by Side Diff: net/disk_cache/v2/file_lock.cc

Issue 121643003: Reorganize net/disk_cache into backend specific directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more include fixes Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium 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 "net/disk_cache/file_lock.h" 5 #include "net/disk_cache/v2/file_lock.h"
6 6
7 #include "base/atomicops.h" 7 #include "base/atomicops.h"
8 8
9 namespace { 9 namespace {
10 10
11 void Barrier() { 11 void Barrier() {
12 #if !defined(COMPILER_MSVC) 12 #if !defined(COMPILER_MSVC)
13 // VS uses memory barrier semantics for volatiles. 13 // VS uses memory barrier semantics for volatiles.
14 base::subtle::MemoryBarrier(); 14 base::subtle::MemoryBarrier();
15 #endif 15 #endif
(...skipping 22 matching lines...) Expand all
38 } 38 }
39 39
40 void FileLock::Unlock() { 40 void FileLock::Unlock() {
41 if (!acquired_) 41 if (!acquired_)
42 return; 42 return;
43 Barrier(); 43 Barrier();
44 (*updating_)--; 44 (*updating_)--;
45 } 45 }
46 46
47 } // namespace disk_cache 47 } // namespace disk_cache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698