| 423 | |
| 424 | |
| 425 | bool 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 | |
| 439 | bool CKnownFileList::Append(CKnownFile *Record, bool afterHashing) |
no test coverage detected