| 37 | } |
| 38 | |
| 39 | void SendThread::SetReadyToRead() |
| 40 | { |
| 41 | // We need to wait for the send thread to release its mutex |
| 42 | { |
| 43 | #if !defined(ARMNN_DISABLE_THREADS) |
| 44 | std::lock_guard<std::mutex> lck(m_WaitMutex); |
| 45 | #endif |
| 46 | m_ReadyToRead = true; |
| 47 | } |
| 48 | // Signal the send thread that there's something to read in the buffer |
| 49 | #if !defined(ARMNN_DISABLE_THREADS) |
| 50 | m_WaitCondition.notify_one(); |
| 51 | #endif |
| 52 | } |
| 53 | |
| 54 | void SendThread::Start(IProfilingConnection& profilingConnection) |
| 55 | { |
no outgoing calls