Add hardware_concurrency interface to llvm::thread (NFC)
authorTeresa Johnson <tejohnson@google.com>
Fri, 4 Mar 2016 00:25:54 +0000 (00:25 +0000)
committerTeresa 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

index 2d13041..9c45418 100644 (file)
@@ -57,6 +57,7 @@ struct thread {
   thread(const thread &) = delete;
 
   void join() {}
+  static unsigned hardware_concurrency() { return 1; };
 };
 
 }