MCPcopy Create free account
hub / github.com/amule-project/amule / SafeAddKFile

Method SafeAddKFile

src/KnownFileList.cpp:425–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424
425bool CKnownFileList::SafeAddKFile(CKnownFile* toadd, bool afterHashing)
426{
427 bool ret;
428 {
429 wxMutexLocker sLock(list_mut);
430 ret = Append(toadd, afterHashing);
431 }
432 if (ret) {
433 theApp->searchlist->UpdateSearchFileByHash(toadd->GetFileHash());
434 }
435 return ret;
436}
437
438
439bool CKnownFileList::Append(CKnownFile *Record, bool afterHashing)

Callers 7

OnFinishedHashingMethod · 0.45
OnMarkAsKnownMethod · 0.45
performConvertToeMuleMethod · 0.45
PartFileHashFinishedMethod · 0.45
CompleteFileEndedMethod · 0.45
OnAsyncHashCompleteMethod · 0.45

Calls 1

Tested by

no test coverage detected