forked from OSchip/llvm-project
Follow-up for r289831: Lower the unjoined thread count to 100 in the libcxx-future.mm testcase.
Turns out 1000 unjoined threads are a bit too rough in certain environments. llvm-svn: 289971
This commit is contained in:
parent
e3b75ded98
commit
79b4f0ad9c
|
@ -12,7 +12,7 @@ int main(int argc, const char *argv[]) {
|
|||
|
||||
std::vector<std::thread> threads;
|
||||
|
||||
for (int i = 0; i < 1000; i++) {
|
||||
for (int i = 0; i < 100; i++) {
|
||||
std::packaged_task<int(void)> task(my_task);
|
||||
std::future<int> future = task.get_future();
|
||||
threads.push_back(std::thread(std::move(task)));
|
||||
|
|
Loading…
Reference in New Issue