//////////////////////////////////////////////// //Cache coerency methods //////////////////////////////////////////////// void SharedDataManager::getCoherencyInfo(TreeDescriptor treeId, int nid, bool &isOwner, int &ownerIdx, bool &isWarm, bool &isDirty, int ×tamp) { lock.lock(); SharedMemNodeData *nodeData = getNodeData(treeId, nid, true); if(nodeData) nodeData->getCoherencyInfo(isOwner, ownerIdx, isWarm, isDirty, timestamp); lock.unlock(); }
void SharedDataManager::getCoherencyInfo(TreeDescriptor treeId, int nid, bool &isOwner, int &ownerIdx, bool &isWarm, int ×tamp, char * &warmList, int &numWarm, char *&readerList, int &numReader) { lock.lock(); SharedMemNodeData *nodeData = getNodeData(treeId, nid, true); if(nodeData) nodeData->getCoherencyInfo(isOwner, ownerIdx, isWarm, timestamp, warmList, numWarm, readerList, numReader); lock.unlock(); }