摘要:
#include <chrono>#include <iomanip>#include <iostream> std::chrono::system_clock::time_point t = std::chrono::system_clock::now(); std::time_t c = std 阅读全文
摘要:
std::counting_semaphore 具体内容看std::counting_semaphore, std::binary_semaphore - C++中文 - API参考文档 (apiref.com)。感觉使用方法和 std::condition_variable 差不多,有时间再看看源 阅读全文