qinguoyi / TinyWebServer

:fire: Linux下C++轻量级WebServer服务器
Apache License 2.0
15.85k stars 3.81k forks source link

void*还有返回值? #214

Closed KiwiGeorge closed 1 year ago

KiwiGeorge commented 1 year ago

![Uploading Screenshot 2023-03-31 at 11.09.42.png…]() 这里为什么是void?async这个函数也是无返回值,也是void类型

KiwiGeorge commented 1 year ago

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? }