jeans chen
we've got them by the balls
上一页 1 2 3 4 5 6 7 ··· 31 下一页
摘要: pthread_cleanup_push()/pthread_cleanup_pop()的详解 分类: Linux 2010-09-28 16:02 1271人阅读 评论(1) 收藏 举报asynchronousbufferapistructlinux编程刚练习线程的条件变量时碰到了这两个函数,关于这两个函数书上讲的比较模糊,所以在网上找到了一篇我感觉讲的很好的一篇文章,就是关于线程的终止,大概如下:一般来说,Posix的线程终止有两种情况:正常终止和非正常终止。线程主动调用pthread_exit()或者从线程函数中return都将使线程正常退出,这是可预见的退出方式;非正常终止是线程... 阅读全文
posted @ 2014-03-25 10:51 jeans chen 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Lord, don't move that mountain(主,不要移走高山)Give me strength to climb it(赐予我力量攀登它)Please don't move that stumbling block(不要移走绊脚石)But lead me, lord, around(只请你引导我,主,伴着我)My burdens, they get so heavy(我的负担,他们是那么沉重)Seems hard to bear(似乎永远不会减轻)But I won't give up, no, no(但是我不会放弃,决不放弃)Because you 阅读全文
posted @ 2014-03-24 16:12 jeans chen 阅读(242) 评论(0) 推荐(0) 编辑
摘要: C++浅拷贝和深拷贝的区别 2012-04-24 21:22 11454人阅读 评论(6) 收藏 举报c++deleteclass编译器cc++默认的拷贝构造函数是浅拷贝浅拷贝就是对象的数据成员之间的简单赋值,如你设计了一个没有类而没有提供它的复制构造函数,当用该类的一个对象去给令一个对象赋值时所执行的过程就是浅拷贝,如:class A { public: A(int _data) : data(_data){} A(){}private: int data; };int main() { A a(5), b = a; // 仅仅是数据成员之间的赋值 }这一句b = a;就是浅拷贝,执行完这. 阅读全文
posted @ 2014-03-24 14:57 jeans chen 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-03-24 14:35 jeans chen 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-03-21 16:00 jeans chen 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-03-21 11:12 jeans chen 阅读(165) 评论(0) 推荐(0) 编辑
摘要: nothing could be more annoying!!!!!lost!failed! 阅读全文
posted @ 2014-03-20 17:27 jeans chen 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-03-20 11:16 jeans chen 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 可以先参考一个帖子:http://bbs.csdn.net/topics/390731394?page=1 阅读全文
posted @ 2014-03-14 17:16 jeans chen 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-03-14 16:49 jeans chen 阅读(147) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 31 下一页