| 420 | static std::mutex g_queueMutex; |
| 421 | |
| 422 | void Queue(const std::vector<uint8_t>& respBody) { |
| 423 | if (respBody.empty()) return; |
| 424 | std::lock_guard<std::mutex> lock(g_queueMutex); |
| 425 | g_queue.push(respBody); |
| 426 | } |
| 427 | |
| 428 | void DrainOnNetThread() { |
| 429 | if (!Ready()) return; |