摘要: 为什么在互斥量的基础上还需要加条件变量? 可参考链接:https://www.jianshu.com/p/01ad36b91d39 需要注意的是 #include <pthread.h> int pthread_cond_wait(pthread_cond_t *cv, pthread_mutex_ 阅读全文
posted @ 2019-12-25 17:44 东南菜鸟 阅读(912) 评论(0) 推荐(0) 编辑
摘要: PS:c++ clear()在流中时标识清空所有标记! 而不是像在string中时清空字符串. 在STL容器里clear方法的含义均为清空容器,但在STL的所有流中clear的含义均为清空错误标记! 那么问题来了。。。如何清除呢? oss.str(""); string str ( ) const; 阅读全文
posted @ 2019-12-25 15:50 东南菜鸟 阅读(286) 评论(0) 推荐(0) 编辑