「C++ 多线程」std::shared_mutex,std::shared_lock std::shared_mutex 基本概念;std::shared_mutex 演变过程;std::shared_mutex 成员函数;std::shared_mutex 配合 std::shared_lock、std::unique_lock 的基本用法。 2024-12-29 追逐繁星 > C++ 多线程 #C++ #多线程 #std::thread #std::mutex #std::shared_mutex
「C++ 多线程」std::recursive_mutex 基本用法 std::recursive_mutex 基本使用方法。 2024-12-28 追逐繁星 > C++ 多线程 #C++ #多线程 #std::thread #std::mutex
「C++ 多线程」std::timed_mutex 基本用法 std::timed_mutex 基本使用方法;std::timed_mutex::try_lock_for() 和 std::timed_mutex::try_lock_until()。 2024-12-28 追逐繁星 > C++ 多线程 #C++ #多线程 #std::thread #std::mutex
「C++ 多线程」死锁及 C++ 多线程解决死锁方法 死锁的基本概念;死锁产生的条件;C++ 多线程减少死锁的方法;C++ 多线程解决死锁的方法。 2024-12-27 追逐繁星 > C++ 多线程 #C++ #多线程 #std::thread #std::mutex
「C++ 多线程」std::unique_lock 基本用法 std::unique_lock 的基本概念和使用方法;简单 std::unique_lock 使用代码示例;std::unique_lock 手动加锁解锁;std::defer_lock, std::adopt_lock 等参数的使用:包含搭配 std::unique_lock 的其他成员函数的使用。 2024-12-26 追逐繁星 > C++ 多线程 #C++ #多线程 #std::thread #std::mutex
「C++ 多线程」std::lock_guard 基本用法 std::lock_guard 的基本概念和使用方法;简单 std::lock_guard 使用代码示例;简单的 std::lock_guard 实际应用示例。 2024-12-26 追逐繁星 > C++ 多线程 #C++ #多线程 #std::thread #std::mutex
「C++ 多线程」std::mutex,lock(), unlock() 互斥锁概念;std::mutex 以及 lock() 和 unlock() 的基本用法;std::mutex 简单应用 2024-12-25 追逐繁星 > C++ 多线程 #C++ #多线程 #std::thread #std::mutex
「C++ 多线程」硬件支持线程数、线程识别 硬件支持线程数 hardware_concurrency()、线程识别 get_id() 2024-12-23 追逐繁星 > C++ 多线程 #C++ #多线程 #std::thread
「C++ 多线程」std::thread scoped_thread 实现 C++ 多线程用 std::thread 实现一个简单的 scoped_thread 资源管理类,原理是采用了 RAII 机制,确保线程在适当的时候被正确处理。 2024-12-22 追逐繁星 > C++ 多线程 #C++ #多线程 #std::thread