eMule ref: CPartFileWriteThread::WakeUpCall() — line 230 Called by the main thread to queue a write item.
| 67 | // eMule ref: CPartFileWriteThread::WakeUpCall() — line 230 |
| 68 | // Called by the main thread to queue a write item. |
| 69 | void CPartFileWriteThread::QueueWrite(CPartFile* pFile, PartFileBufferedData* pBuffer) |
| 70 | { |
| 71 | wxMutexLocker lock(m_mutex); |
| 72 | m_flushList.push_back(ToWrite{ pFile, pBuffer }); |
| 73 | m_bWorkPending = true; |
| 74 | m_condition.Signal(); |
| 75 | } |
| 76 | |
| 77 | |
| 78 | void CPartFileWriteThread::DropReferencesTo(const CKnownFile* file) |