03 2022 档案
摘要:void SplitString(const std::string& s, std::vector<std::string>& v, const std::string& c) { std::string::size_type pos1, pos2; pos2 = s.find(c); pos1
阅读全文
摘要:地球人都知道1:pthread_cond_timedwait使用时,需要对【条件】加锁。【条件】也是一种线程共享资源。 地球人都知道2:1个互斥锁不应该管理2类及以上的多线程共享资源 1+2=下面这样应该会导致死锁, pthread_mutex_lock(mutex) Queue.pp() pthr
阅读全文
摘要:https://blog.csdn.net/weixin_38391755/article/details/80380786 基本语法:1,目标文件:顶格冒号前面,代号$@ 2,依赖文件:冒号后面,代号$<(第一个依赖) $^(全部依赖)等等 3,命令:一个Tab后面,像 gcc -o target
阅读全文
摘要:C++17 https://changkun.de/modern-cpp/ Rust https://kaisery.github.io/trpl-zh-cn/title-page.html
阅读全文