in loop(), the std::function is now reset after the task is executed
This commit is contained in:
		@@ -195,5 +195,6 @@ void thread_pool::loop()
 | 
				
			|||||||
            queue.pop_front();
 | 
					            queue.pop_front();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        fun();
 | 
					        fun();
 | 
				
			||||||
 | 
					        fun = nullptr;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user