|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86291 - trunk/boost/thread
From: vicente.botet_at_[hidden]
Date: 2013-10-13 09:15:05
Author: viboes
Date: 2013-10-13 09:15:05 EDT (Sun, 13 Oct 2013)
New Revision: 86291
URL: http://svn.boost.org/trac/boost/changeset/86291
Log:
Thread: add thread_pool reserv for worker threads.
Text files modified:
trunk/boost/thread/thread_pool.hpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Modified: trunk/boost/thread/thread_pool.hpp
==============================================================================
--- trunk/boost/thread/thread_pool.hpp Sun Oct 13 09:08:29 2013 (r86290)
+++ trunk/boost/thread/thread_pool.hpp 2013-10-13 09:15:05 EDT (Sun, 13 Oct 2013) (r86291)
@@ -119,6 +119,7 @@
{
try
{
+ threads.reserve(thread_count);
for (unsigned i = 0; i < thread_count; ++i)
{
threads.push_back(thread_t(&thread_pool::worker_thread, this));
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk