I tried to implement a threadpool in C++, but its running into issues. It compiles, but it keeps spitting out “terminate called without an active exception.” Its my understanding that this happens when a thread terminates without being joined, but all my threads are running a function that is an infinite loop; I am not sure how they could be terminating. I’m mostly new to threads in C++, so if somebody could explain what’s going wrong, I’d be very appreciative. Link to my the repo for my code is below.
Aucun commentaire:
Enregistrer un commentaire