摘要: 一.线程属性线程具有属性,用pthread_attr_t表示,在对该结构进行处理之前必须进行初始化,在使用后需要对其去除初始化。我们用pthread_attr_init函数对其初始化,用pthread_attr_destroy对其去除初始化。名称::pthread_attr_init/pthread... 阅读全文
posted @ 2014-06-04 18:03 VampireNails 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 参考路径:http://guoyinghui2012.blog.163.com/blog/static/20871720020128110847509/ 阅读全文
posted @ 2014-05-28 09:51 VampireNails 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1、显示所有状态ps -aux2、用树形显示进程和线程$ ps -ef f | grep [PID]3、kill -9 [PID]-9 表示强迫进程立即停止 阅读全文
posted @ 2014-05-20 14:21 VampireNails 阅读(164) 评论(0) 推荐(0) 编辑
摘要: $ git clone https://vm-gitlab/zhangliang/abc.git报错,说证书校验有问题:error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt ... 阅读全文
posted @ 2014-05-14 15:55 VampireNails 阅读(4051) 评论(0) 推荐(0) 编辑
摘要: Ref:http://hi.baidu.com/imtoby/item/e5f13684a0495552e63d190a英文原文地址:Ref:https://qt-project.org/doc/qt-5.0/qtdoc/qmake-advanced-usage.html#adding-new-co... 阅读全文
posted @ 2014-05-06 17:45 VampireNails 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Linux下设置QT环境变量①、更改用户环境变量 gedit /home/(usr)/.bashrc 添加: export QTDIR=/usr/local/Trolltech/Qt-4.8.2 export PATH=$QTDIR/bin:$PATH export MANPATH=$QT... 阅读全文
posted @ 2014-05-06 15:22 VampireNails 阅读(17687) 评论(0) 推荐(0) 编辑
摘要: 参考http://blog.csdn.net/dbzhang800/article/details/6348432qmake manual:qmake-advanced-usage.htmlqmake manual:qmake-variable-reference.htmlhttp://www.q... 阅读全文
posted @ 2014-05-06 09:29 VampireNails 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1. 显示环境变量HOME $ echo $HOME /home/redbooks 2. 设置一个新的环境变量hello $ export HELLO="Hello!" $ echo $HELLO Hello! 3. 使用env命令显示所有的环境变量 $ ... 阅读全文
posted @ 2014-04-30 17:28 VampireNails 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 安装qt4以后使用命令行编译时出现一下错误:administrator@ubuntu:~/qt/qt-book/chap01/hello$ qmake hello.pro程序 'qmake' 已包含在以下软件包中:* qt3-dev-tools* qt4-qmake试试:sudo apt-get i... 阅读全文
posted @ 2014-04-30 17:11 VampireNails 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-04-23 13:50 VampireNails 阅读(885) 评论(0) 推荐(0) 编辑