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

Method SetPublishedED2K

src/KnownFile.cpp:1373–1384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1371}
1372
1373void CKnownFile::SetPublishedED2K(bool val){
1374 if (m_PublishedED2K == val) {
1375 // No-op state changes are a hot path during ClearED2KPublishInfo
1376 // (which writes false to every shared file regardless of current
1377 // state) — the GUI cascade is O(N) per call due to FindItem in
1378 // CSharedFilesCtrl::UpdateItem, so unconditional notify here was
1379 // O(N²) on a single-threaded main loop. See #302.
1380 return;
1381 }
1382 m_PublishedED2K = val;
1383 Notify_SharedFilesUpdateItem(this);
1384}
1385
1386bool CKnownFile::PublishNotes()
1387{

Callers 3

ClearED2KPublishInfoMethod · 0.80
RepublishFileMethod · 0.80
SendListToServerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected