read_pool.html">ThreadPool</a> threadPool(numThreads);</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; int(imagesIn.size()); ++i) {</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    threadPool.spawn([&amp;, i] { imagesOut[i] = resizeImage&lt;T&gt;(imagesIn[i], size, type); });</div><div class="line"><a name="l00165"></a><span class="lineno">  165<