I have to write a program for school that uses threads. Threading isn't the point of the assignment, so there may be other ways of doing what I need to accomplish, but this seems like the only ...
I have an object that maintains a number of internal pthreads. In the object destructor, I want to kill any running internal threads. The thread executing the destructor will not be one of these ...