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
3 // found in the LICENSE file.
5 #include "net/disk_cache/blockfile/file_lock.h"
7 #include "base/atomicops.h"
12 #if !defined(COMPILER_MSVC)
13 // VS uses memory barrier semantics for volatiles.
14 base::subtle::MemoryBarrier();
20 namespace disk_cache
{
22 FileLock::FileLock(BlockFileHeader
* header
) {
23 updating_
= &header
->updating
;
29 FileLock::~FileLock() {
33 void FileLock::Lock() {
40 void FileLock::Unlock() {
47 } // namespace disk_cache