erebus

diff liberebus/src/threadpool.cc @ 48:9971a08f4104

merged
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 24 Feb 2016 00:29:31 +0200
parents d15ee526daa6
children
line diff
     1.1 --- a/liberebus/src/threadpool.cc	Wed Feb 24 00:26:50 2016 +0200
     1.2 +++ b/liberebus/src/threadpool.cc	Wed Feb 24 00:29:31 2016 +0200
     1.3 @@ -134,9 +134,7 @@
     1.4  void ThreadPool::thread_func()
     1.5  {
     1.6  	std::unique_lock<std::mutex> lock(workq_mutex);
     1.7 -	for(;;) {
     1.8 -		if(quit) break;
     1.9 -
    1.10 +	while(!quit) {
    1.11  		workq_condvar.wait(lock);
    1.12  
    1.13  		while(!quit && !workq.empty()) {