Add comments of async load, to avoid confusions of developers.

This commit is contained in:
Zhe Wang 2015-03-23 20:58:16 +08:00
parent 0adedc7a75
commit 8e2e1e5723
1 changed files with 2 additions and 0 deletions

View File

@ -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();