摘要:
目录简介成员函数 简介 原子操作库 在 C++11 中,std::atomic是一个用于原子操作的类模板。它提供了原子的读-改-写操作,以确保在多线程环境下对共享变量的操作是线程安全的。 std::atomic的主要用途是对共享变量进行原子操作,例如递增、递减、赋值等。它可以用于实现线程安全的数据结 阅读全文
posted @ 2024-01-23 13:28
guanyubo
阅读(328)
评论(0)
推荐(0)
摘要:
目录semaphore信号量的实现semaphore信号量的使用Semaphore与condition_variable的区别 semaphore信号量的实现 参考链接 使用了std::mutex和std::condition_variable来实现信号量的操作。 在这个实现中,Semaphore类 阅读全文
posted @ 2024-01-23 12:39
guanyubo
阅读(141)
评论(0)
推荐(0)
摘要:
参考 git config --global core.quotepath false git config --global i18n.commitencoding utf-8 git config --global i18n.logoutputencoding utf-8 阅读全文
posted @ 2024-01-23 09:39
guanyubo
阅读(29)
评论(0)
推荐(0)

浙公网安备 33010602011771号