INNER CODE UNIT · C++

iRet

TarsCloud/TarsCpp · mock/DbHandle.cpp:315

    int iRet = (vecActive.empty() && vecInactive.empty()) ? -2 : 0;
    return iRet;
}

void CDbHandle::updateObjectsCache(const ObjectsCache& objCache, bool updateAll)
{
	std::lock_guard<std::mutex> lock(_mutex);
    //全量更新
    if (updateAll)
    {
        _objectsCache = objCache;
    }
    else
    {
        //用查询数据覆盖一下
        ObjectsCache& tmpObjCache = _objectsCache;

        ObjectsCache::const_iterator it = objCache.begin();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…