01 2021 档案

摘要:1 this指针 c++ 代码转换为c语言代码简要: 注意事项: C++中this关键字是一个指向对象自己的一个常量指针,不能给this赋值; 只有成员函数才有this指针,友元函数不是类的成员函数,没有this指针; 同样静态函数也是没有this指针的,静态函数如同静态变量一样,不属于具体的哪一个 阅读全文
posted @ 2021-01-20 19:52 lihaihui199102 阅读(98) 评论(0) 推荐(0) 编辑
摘要:1 call_once使用 函数模板,该函数的第一个参数为标记,第二个参数是一个函数名(如a())。 功能:能够保证函数a()只被调用一次。具备互斥量的能力,而且比互斥量消耗的资源更少,更高效。 call_once()需要与一个标记结合使用,这个标记为std::once_flag;其实once_fl 阅读全文
posted @ 2021-01-16 18:09 lihaihui199102 阅读(346) 评论(0) 推荐(0) 编辑
摘要:<future> 头文件中包含了以下几个类和函数: Providers 类:stdpromise, stdpackage_task Futures 类:std::future,shared_future. Providers 函数:std::async() 其他类型:stdfuture_error, 阅读全文
posted @ 2021-01-16 16:24 lihaihui199102 阅读(109) 评论(0) 推荐(0) 编辑
摘要:c++多线程 条件变量 阅读全文
posted @ 2021-01-15 22:40 lihaihui199102 阅读(115) 评论(0) 推荐(0) 编辑
摘要:c++多线程 锁 阅读全文
posted @ 2021-01-15 11:15 lihaihui199102 阅读(1281) 评论(0) 推荐(0) 编辑
摘要:c++11多线程创建,join,detach,joinable等使用 阅读全文
posted @ 2021-01-13 15:55 lihaihui199102 阅读(114) 评论(0) 推荐(0) 编辑
摘要:g++ -S -E -c -o 编译器 阅读全文
posted @ 2021-01-08 17:35 lihaihui199102 阅读(154) 评论(0) 推荐(0) 编辑
摘要:1、Program terminated with signal 11, Segmentation fault. 定位思路: 1.1 查看堆栈 Program terminated with signal 11, Segmentation fault. #0 0x00007f8e0fa57d00 i 阅读全文
posted @ 2021-01-08 16:03 lihaihui199102 阅读(630) 评论(0) 推荐(0) 编辑
摘要:1、Freeswitch 配置文件 转载配置文件解读 配置文件默认的目录是 /usr/local/freeswitch/conf | conf/目录和文件 | 说明 | | : | | | |——vars.xml | 一些常用变量 | | |——autoload_configs | 目录、存放自动加 阅读全文
posted @ 2021-01-05 10:04 lihaihui199102 阅读(604) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示