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

Method NewBlockRequestsAvailable

src/UploadDiskIOThread.cpp:94–99  ·  view source on GitHub ↗

eMule ref: CUploadDiskIOThread::NewBlockRequestsAvailable() — UploadDiskIOThread.h:55 Called by main thread when new block requests are added for a client. Uses a sticky flag so the signal is not lost if the thread is between iterations (not yet sleeping in WaitTimeout). Without the flag, wxCondition::Signal() is a pure pulse — it is dropped if no thread is currently waiting.

Source from the content-addressed store, hash-verified

92// (not yet sleeping in WaitTimeout). Without the flag, wxCondition::Signal() is a
93// pure pulse — it is dropped if no thread is currently waiting.
94void CUploadDiskIOThread::NewBlockRequestsAvailable()
95{
96 wxMutexLocker lock(m_mutex);
97 m_bNewBlocksPending = true;
98 m_condition.Signal();
99}
100
101
102// eMule ref: CUploadDiskIOThread::SocketNeedsMoreData() — UploadDiskIOThread.h:56

Callers 3

AddReqBlockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected