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.
| 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. |
| 94 | void 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 |
no outgoing calls
no test coverage detected