i\'m having some trouble using a C++11 std::mutex
in my class I have a variable called semaphore of type std::mutex.
So I positioned my semaphore.lock() and sema
Declare your mutex dynamically and not statically.
At your Database class header declare the mutex as a pointer, like that:
mutex * semaphore;
and at your constructor initialize the mutex calling his constructor:
semaphore = new std::mutex();