Simple thread pool in C ++

Can someone give me an example of a thread pool implementation in C ++, please? I am looking for a very simple, not too complicated, that would be suitable for beginners in streaming learning.

+3
source share
4 answers

Take a look at Intel Building Blocks Themes . I don’t know how well the library meets your β€œsimple” criteria, but it seems to be very thoughtful and thorough. I would have thought it would be useful to study if you want to make threads in C ++.

Boost also has some streaming facilities.

+4
source

, Qt QThreadPool.

+1

: threadpool , - , ,

0

" C++ " threadpool. . https://github.com/spakai/threadpool_future, , - .

0

Source: https://habr.com/ru/post/1774820/


All Articles