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

Side by Side Diff: tools/pnacl-llc/ThreadedFunctionQueue.h

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698