HhoopeCheungv3.23.3
3c04472f创建于 2023年4月25日历史提交
#include "log4cpp/threading/Threading.hh"
#include <stdio.h>

#if defined(LOG4CPP_HAVE_THREADING) && defined(LOG4CPP_USE_MSTHREADS)

namespace log4cpp {
    namespace threading {

        std::string getThreadId() {
            char buffer[16];
            sprintf(buffer, "%lu", GetCurrentThreadId());
            return std::string(buffer);
        };
    }
}

#endif // LOG4CPP_HAVE_THREADING && LOG4CPP_USE_MSTHREADS