Add hardware_concurrency interface to llvm::thread (NFC)
Part of D15390. llvm-svn: 262677
This commit is contained in:
parent
330c5a60c7
commit
a3135be77d
|
@ -57,6 +57,7 @@ struct thread {
|
|||
thread(const thread &) = delete;
|
||||
|
||||
void join() {}
|
||||
static unsigned hardware_concurrency() { return 1; };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue