mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 22:17:23 +08:00
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:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user