From a3135be77d3569f1d423da815da77a68f6a71fa5 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Fri, 4 Mar 2016 00:25:54 +0000 Subject: [PATCH] Add hardware_concurrency interface to llvm::thread (NFC) Part of D15390. llvm-svn: 262677 --- llvm/include/llvm/Support/thread.h | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/include/llvm/Support/thread.h b/llvm/include/llvm/Support/thread.h index 2d13041..9c45418 100644 --- 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; }; }; } -- 2.7.4