OLD | NEW |
1 //===- ThreadedFunctionQueue.h - Function work units for threads -*- C++ -*-==// | 1 //===- ThreadedFunctionQueue.h - Function work units for threads -*- C++ -*-==// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 | 9 |
10 #ifndef THREADEDFUNCTIONQUEUE_H | 10 #ifndef THREADEDFUNCTIONQUEUE_H |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 unsigned Size() const { | 101 unsigned Size() const { |
102 return NumFunctions; | 102 return NumFunctions; |
103 } | 103 } |
104 | 104 |
105 private: | 105 private: |
106 const unsigned NumThreads; | 106 const unsigned NumThreads; |
107 unsigned NumFunctions; | 107 unsigned NumFunctions; |
108 volatile unsigned CurrentFunction; | 108 volatile unsigned CurrentFunction; |
109 | 109 |
110 ThreadedFunctionQueue( | 110 ThreadedFunctionQueue( |
111 const ThreadedFunctionQueue&) LLVM_DELETED_FUNCTION; | 111 const ThreadedFunctionQueue&) = delete; |
112 void operator=(const ThreadedFunctionQueue&) LLVM_DELETED_FUNCTION; | 112 void operator=(const ThreadedFunctionQueue&) = delete; |
113 }; | 113 }; |
114 | 114 |
115 } // end namespace llvm | 115 } // end namespace llvm |
116 | 116 |
117 #endif | 117 #endif |
OLD | NEW |