mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Add a MutexRef class to clean up Mutex handling code
This commit is contained in:
@@ -30,12 +30,10 @@ namespace image
|
||||
ImageData::ImageData()
|
||||
: data(nullptr)
|
||||
{
|
||||
mutex = thread::newMutex();
|
||||
}
|
||||
|
||||
ImageData::~ImageData()
|
||||
{
|
||||
delete mutex;
|
||||
}
|
||||
|
||||
size_t ImageData::getSize() const
|
||||
|
||||
Reference in New Issue
Block a user