Deleted Added
full compact
RWMutex.h (225736) RWMutex.h (245431)
1//===- RWMutex.h - Reader/Writer Mutual Exclusion Lock ----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file declares the llvm::sys::RWMutex class.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_SYSTEM_RWMUTEX_H
15#define LLVM_SYSTEM_RWMUTEX_H
16
1//===- RWMutex.h - Reader/Writer Mutual Exclusion Lock ----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file declares the llvm::sys::RWMutex class.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_SYSTEM_RWMUTEX_H
15#define LLVM_SYSTEM_RWMUTEX_H
16
17#include "llvm/Support/Compiler.h"
17#include "llvm/Support/Threading.h"
18#include <cassert>
19
20namespace llvm
21{
22 namespace sys
23 {
24 /// @brief Platform agnostic RWMutex class.

--- 45 unchanged lines hidden (view full) ---

70 /// @{
71 private:
72 void* data_; ///< We don't know what the data will be
73
74 /// @}
75 /// @name Do Not Implement
76 /// @{
77 private:
18#include "llvm/Support/Threading.h"
19#include <cassert>
20
21namespace llvm
22{
23 namespace sys
24 {
25 /// @brief Platform agnostic RWMutex class.

--- 45 unchanged lines hidden (view full) ---

71 /// @{
72 private:
73 void* data_; ///< We don't know what the data will be
74
75 /// @}
76 /// @name Do Not Implement
77 /// @{
78 private:
78 RWMutexImpl(const RWMutexImpl & original);
79 void operator=(const RWMutexImpl &);
79 RWMutexImpl(const RWMutexImpl & original) LLVM_DELETED_FUNCTION;
80 void operator=(const RWMutexImpl &) LLVM_DELETED_FUNCTION;
80 /// @}
81 };
82
83 /// SmartMutex - An R/W mutex with a compile time constant parameter that
84 /// indicates whether this mutex should become a no-op when we're not
85 /// running in multithreaded mode.
86 template<bool mt_only>
87 class SmartRWMutex : public RWMutexImpl {

--- 86 unchanged lines hidden ---
81 /// @}
82 };
83
84 /// SmartMutex - An R/W mutex with a compile time constant parameter that
85 /// indicates whether this mutex should become a no-op when we're not
86 /// running in multithreaded mode.
87 template<bool mt_only>
88 class SmartRWMutex : public RWMutexImpl {

--- 86 unchanged lines hidden ---