![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程C++
zjsyhsl
这个作者很懒,什么都没留下…
展开
-
C++ 11 多线程
今天在进行多线程编程的时候遇到了一个编译问题:error: argument of type ‘void (PIAMW::Communicator::)()’ does not match ‘void* (*)(void*)’ 后来发现将线程处理函数声明为static类型,问题得解。 其实这个原因很简单,当把线程函数封装在类中,this指针会作为默认的参数被传进函数中,从而和转载 2017-11-08 15:12:16 · 186 阅读 · 0 评论 -
C++ 调试
valgrind 内存分析工具原创 2018-08-24 18:35:55 · 445 阅读 · 0 评论 -
C++ 软件工程 项目常用工具之glog使用教程
1 安装 Ubuntu 下安装方法为:sudo apt-get install libgoogle-glog-dev 2 使用方法 2.1 常用函数说明: 初始化日志模块 google::InitGoogleLogging(""); 与设置日志相关的函数 FLAGS_log_dir = "./log"; //设置log路径 关闭日志模块 google::ShutdownGoo...原创 2018-11-13 13:36:21 · 375 阅读 · 1 评论