Add a MutexRef class to clean up Mutex handling code

This commit is contained in:
Bart van Strien
2015-07-06 11:58:08 +02:00
parent dd1167d736
commit 7e44034757
10 changed files with 31 additions and 21 deletions
-2
View File
@@ -30,12 +30,10 @@ namespace image
ImageData::ImageData()
: data(nullptr)
{
mutex = thread::newMutex();
}
ImageData::~ImageData()
{
delete mutex;
}
size_t ImageData::getSize() const