Hi all,
Do you know if the following is a good practice:
- Having an object called A which has three members: std::thread, std::mutex and a member of type object B
- This thread will be created by a method of object A (startThread for example). The thread will then spawn a function from object B which has as argument the std::mutex of object A