Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jb1991
on June 14, 2023
|
parent
|
context
|
favorite
| on:
Is parallel programming hard, and, if so, what can...
And in C++ can also use this dead-simple header file for a nice high-level, modern threadpool using function objects (lambdas) for very easy parallelization of arbitrary tasks:
https://github.com/progschj/ThreadPool
OnlyMortal
on June 14, 2023
[–]
Simple bit of code for a simple threadpool.
I spotted a bug in it though which
may
manifest itself depending on platform.
jb1991
on June 14, 2023
|
parent
[–]
What did you find? The code is quite widely used, and I’ve also used it extensively for years without any problems.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: