'unique numbers in parallel_for(c++)
tbb::parallel_for(0, 33, [&](int indexNum)
{
print(indexNum)
});
hi, I expect the indexNum to be unique numbers and to print unique numbers. But in practice, the numbers are displayed as duplicates(Non-unique).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|