Closed KiwiGeorge closed 1 year ago
![Uploading Screenshot 2023-03-31 at 11.09.42.png…]() 这里为什么是void?async这个函数也是无返回值,也是void类型
void* async_write_log() {
string single_log; while (m_log_queue->pop(single_log)) { m_mutex.lock(); fputs(single_log.c_str(), m_fp); m_mutex.unlock(); }
// return? }
![Uploading Screenshot 2023-03-31 at 11.09.42.png…]() 这里为什么是void?async这个函数也是无返回值,也是void类型