12 2021 档案
摘要:换sources vi /etc/apt/sources.list deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb-src https://mirrors.aliyun.com/debian/ bul
阅读全文
摘要:线程管理 thread管理基础 thread_join_detach.cpp 线程启动后,销毁前要调用join或detach,否则std::thread的析构函数会调用std::terminate终止程序. 线程都有入口函数,入口main/foo 函数. 线程会在函数结束时完会退出. 使用join即
阅读全文