erebus

changeset 25:6ef4b10fa468

ops, failed to set num_threads in ThreadPool
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 31 May 2014 06:21:09 +0300
parents 4336acf8389d
children c8a6fb04fefa
files liberebus/src/threadpool.cc
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/liberebus/src/threadpool.cc	Fri May 30 06:56:44 2014 +0300
     1.2 +++ b/liberebus/src/threadpool.cc	Sat May 31 06:21:09 2014 +0300
     1.3 @@ -14,6 +14,7 @@
     1.4  	for(int i=0; i<num_threads; i++) {
     1.5  		thread[i] = std::thread(&ThreadPool::thread_func, this);
     1.6  	}
     1.7 +	this->num_threads = num_threads;
     1.8  }
     1.9  
    1.10  ThreadPool::~ThreadPool()
    1.11 @@ -55,4 +56,4 @@
    1.12  			lock.lock();
    1.13  		}
    1.14  	}
    1.15 -}
    1.16 \ No newline at end of file
    1.17 +}