erebus

changeset 48:9971a08f4104 tip master

merged
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 24 Feb 2016 00:29:31 +0200
parents c4d48a21bc4a 4b91c9a501d8
children
files
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
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()) {