技术栈

call_once

Yongqiang Cheng
21 天前
call_once·c++ 多线程·once_flag
C++ 多线程 std::call_once() and std::once_flaghttps://cplusplus.com/reference/mutex/call_once/public member function
羑悻的小杀马特
3 个月前
c++·多线程·死锁·lock_guard·unique_lock·call_once
C++多线程同步工具箱:call_once精准触发、lock_guard/unique_lock智能管理,打造无死锁程序!本文介绍C++多线程同步相关知识。涵盖call_once保证函数单次执行,lock_guard简单管理锁,unique_lock功能丰富的锁管理,lock与try_lock解决多锁死锁及尝试锁定,阐述原理并举例。
我是有底线的