progschj / ThreadPool

A simple C++11 Thread Pool implementation
zlib License
7.64k stars 2.21k forks source link

Syntactic changes plus a small refactoring. #20

Closed Link512 closed 9 years ago

Link512 commented 9 years ago
Link512 commented 9 years ago

I was just talking in terms of convenience, if the queue will not drain, it means you have to wrap every future.get() in a try/catch and have some kind of fallback mechanism if you're task was not executed. But I suppose that if you specifically choose to initialize the pool in non-draining mode, you are acknowledging the fact that you will have to try/catch everything. I will close this request and update the pull request.