Hello,

I have a class that does it's work in a separate thread, I was using a class member QMutex to provide a mutex around the code that can be called by both the main thread and the worker thread.

Now, I want to have a second instance of the same class, so it will need to have a mutex around some codes that is shared between both instances of the class. So I made it a static class member. I sometimes experience a crash in QMutex::lock(), so I was wondering if my design is flawed. And if so, what is the proper way of doing this?

If there is no design flaw, then it is just a bug, which I'll have to look into. But I was starting to get worried that the design may be flawed

Thanks!