| 20 | }; |
| 21 | |
| 22 | void AddNumberSubset(ftl::TaskScheduler *taskScheduler, void *arg) { |
| 23 | (void)taskScheduler; |
| 24 | NumberSubset *subset = reinterpret_cast<NumberSubset *>(arg); |
| 25 | |
| 26 | subset->total = 0; |
| 27 | |
| 28 | while (subset->start != subset->end) { |
| 29 | subset->total += subset->start; |
| 30 | ++subset->start; |
| 31 | } |
| 32 | |
| 33 | subset->total += subset->end; |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * Calculates the value of a triangle number by dividing the additions up into tasks |
nothing calls this directly
no outgoing calls
no test coverage detected