摘要:
#include <iostream> #include <mutex> #include <thread> void msg_func() { std::mutex mutex; while(1) { mutex.lock(); std::unique_lock<std::mutex> uniqu 阅读全文
posted @ 2022-08-07 12:47
thomas_blog
阅读(134)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <mutex> #include <thread> void msg_func() { std::mutex mutex; while(1) { std::unique_lock<std::mutex> unique(mutex); std: 阅读全文
posted @ 2022-08-07 12:37
thomas_blog
阅读(48)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <mutex> #include <thread> void msg_func() { std::mutex mutex; while(1) { std::lock_guard<std::mutex> guard(mutex); std::c 阅读全文
posted @ 2022-08-07 12:08
thomas_blog
阅读(82)
评论(0)
推荐(0)

浙公网安备 33010602011771号