摘要: //demo2: 传入相应参数 //demo3:抛出发送信息 //demo4: 线程调用类方法执行 //demo4:使用类模板方式,线程调用类方法 // worker is changed 阅读全文
posted @ 2018-04-02 10:25 在左手 阅读(1974) 评论(0) 推荐(0) 编辑
摘要: g++ -o test domything.cpp -lpthread //exec child process in the thread 阅读全文
posted @ 2018-04-01 20:59 在左手 阅读(328) 评论(0) 推荐(0) 编辑
摘要: use the python object's methods in c code 阅读全文
posted @ 2018-04-01 12:57 在左手 阅读(224) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define INBUFSIZE 4096 #define MP3BUFSIZE (int)(1.25 * INBUFSIZE) + 7200 int encode(char *inpath, char *outpath) { int status = 0; lame_global_flags *gfp; ... 阅读全文
posted @ 2018-04-01 10:52 在左手 阅读(310) 评论(0) 推荐(0) 编辑
摘要: example2: 阅读全文
posted @ 2018-04-01 08:39 在左手 阅读(1788) 评论(0) 推荐(0) 编辑
摘要: 一般都是由于工程配置文件导致的错误,暴力方法: 直接用文本工具打开.vcxproj文件。搜索AdditionalManifestFiles ,然后根据当前工程目录进行更改 阅读全文
posted @ 2018-03-27 16:38 在左手 阅读(914) 评论(0) 推荐(0) 编辑
摘要: 这个是用在vs2015时爆出的问题。 解决方法是: 1.鼠标放置在解决方案中的工程名处,用鼠标右键点击(右击)。 2.选择Qt Project Settings,在弹出的对话框中的version栏处填写本地qt含有的版本号 阅读全文
posted @ 2018-03-27 14:20 在左手 阅读(2969) 评论(0) 推荐(0) 编辑
摘要: [Unit] Description= #服务描述 After=syslog.target #服务启动依赖 [Service] Type=forking #服务启动类型 可选类型有simple forking Environment="LD_LIBRARY_PATH=path" #设置变量 Exec 阅读全文
posted @ 2018-03-21 16:17 在左手 阅读(8385) 评论(0) 推荐(0) 编辑
摘要: 这个是因为GNU make版本不一致导致,最后加上-lm g++或者gcc -o main main.c -lm 如果还存在问题 需要加上-Wl,--no-as-needed g++或者gcc -Wl,--no-as-needed -o main main.c -lm 阅读全文
posted @ 2018-03-21 16:08 在左手 阅读(6906) 评论(0) 推荐(1) 编辑
摘要: 使用头文件相对位置为:boost/interprocess/sync/named_mutex.hpp 在程序中使用 boost::interprocess::named_mutex g_namedmutex(boost::interprocess::open_or_create, "theMutex 阅读全文
posted @ 2018-03-21 10:44 在左手 阅读(699) 评论(0) 推荐(0) 编辑