Instead of allocating three separate ThreadMutex pointers, just embed std::mutex into the struct directly.