I might be making a really simple mistake, but I have been searching around and not finding any answer that fixes my problem.
So I have a class that uses and needs static members and I want to make it thread safe as I am using it within other classes. I would like to use each of those other classes in different threads if needed.
All seems fine to me, but when I use a class that inherits "mother". My program seems to run fine until it is time to exit. Then I get "this program is not responding". I know it has to do with the mutex because the second I take it out everything works as it should, no exit problems. What am I doing wrong here?