Use the Facade Pattern to implement a thread manager class, split into .cpp and .hpp files. Reference: https://stackoverflow.com/questions/481984/fa%C3%A7ade-vs-mediator