projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
330c5a6
)
Add hardware_concurrency interface to llvm::thread (NFC)
author
Teresa Johnson
<tejohnson@google.com>
Fri, 4 Mar 2016 00:25:54 +0000
(
00:25
+0000)
committer
Teresa Johnson
<tejohnson@google.com>
Fri, 4 Mar 2016 00:25:54 +0000
(
00:25
+0000)
Part of D15390.
llvm-svn: 262677
llvm/include/llvm/Support/thread.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Support/thread.h
b/llvm/include/llvm/Support/thread.h
index
2d13041
..
9c45418
100644
(file)
--- a/
llvm/include/llvm/Support/thread.h
+++ b/
llvm/include/llvm/Support/thread.h
@@
-57,6
+57,7
@@
struct thread {
thread(const thread &) = delete;
void join() {}
+ static unsigned hardware_concurrency() { return 1; };
};
}