mirror of https://github.com/axmolengine/axmol.git
Add comments of async load, to avoid confusions of developers.
This commit is contained in:
parent
0adedc7a75
commit
8e2e1e5723
|
@ -422,6 +422,8 @@ void DataReaderHelper::addDataFromFileAsync(const std::string& imagePath, const
|
|||
ssize_t size;
|
||||
// FIXME: fileContent is being leaked
|
||||
|
||||
// This getFileData only read exportJson file, it takes only a little time.
|
||||
// Large image files are loaded in DataReaderHelper::addDataFromJsonCache(dataInfo) asynchronously.
|
||||
_dataReaderHelper->_getFileMutex.lock();
|
||||
unsigned char *pBytes = FileUtils::getInstance()->getFileData(fullPath.c_str() , filereadmode.c_str(), &size);
|
||||
_dataReaderHelper->_getFileMutex.unlock();
|
||||
|
|
Loading…
Reference in New Issue