Actually there was another reason to get that error, it's that my class did not define a copy constructor for my class and the compiler wasn't able to generate one while using std::mutex (or Poco::FastMutex).
I just created an empty copy constructor, I wasn't able to make it private or declare it as delete
.