摘要: #include <chrono>#include <iomanip>#include <iostream> std::chrono::system_clock::time_point t = std::chrono::system_clock::now(); std::time_t c = std 阅读全文
posted @ 2022-02-22 20:51 补码 阅读(2381) 评论(0) 推荐(1) 编辑
摘要: std::counting_semaphore 具体内容看std::counting_semaphore, std::binary_semaphore - C++中文 - API参考文档 (apiref.com)。感觉使用方法和 std::condition_variable 差不多,有时间再看看源 阅读全文
posted @ 2022-02-22 12:36 补码 阅读(1183) 评论(1) 推荐(0) 编辑