Chinaunix首页 | 论坛 | 博客
  • 博客访问: 470819
  • 博文数量: 133
  • 博客积分: 1235
  • 博客等级: 少尉
  • 技术积分: 1201
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-08 19:59
文章分类

全部博文(133)

文章存档

2023年(12)

2022年(3)

2018年(2)

2017年(4)

2016年(4)

2015年(42)

2014年(1)

2013年(12)

2012年(16)

2011年(36)

2010年(1)

发布时间:2015-03-14 11:15:17

 在gcc中,可以使用attribute关键字,声明constructor和destructor,代码如下:[cpp] view plaincopy#include <stdio.h>    __attribute((constructor)) void before_main()  {  .........【阅读全文】

阅读(801) | 评论(0) | 转发(0)

发布时间:2013-12-20 17:27:44

//#======================================================== //# author:ago //# 2012/08/24 19:26:57 //#======================================================== #include "python_lib/Python.h" #include <windows.h> #pragma comment(lib,"python27_d.lib") int .........【阅读全文】

阅读(2194) | 评论(0) | 转发(0)

发布时间:2013-12-20 11:55:23

转自:http://www.cppblog.com/API/archive/2013/12/01/204535.htmlepoll,event poll,on linux kernel 2.6.x.pthread,nptl-2.12   LT/ET:ET也会多次发送event,当然频率远低于LT,但是epoll one shot才是真正的对"one connection VS one thread in worker thread pool,不依赖于任何connection-data-que.........【阅读全文】

阅读(1225) | 评论(0) | 转发(0)

发布时间:2013-12-20 10:46:10

转自:http://www.cppblog.com/API/archive/2013/12/06/204616.html1.当取多个返回值时,如下:def mix(a, b) :      r1 = a + b      r2 = a - b      return&.........【阅读全文】

阅读(2334) | 评论(0) | 转发(0)

发布时间:2013-12-20 10:42:27

转自:http://www.cppblog.com/API/archive/2013/12/06/204618.html脚本语言是快速编写富有弹性的代码的重要方法之一,在 Unix 系统自动化管理中已经应用了多种脚本语言。现在,在许多应用开发中,也提供了脚本层,这大大方便用户实现通用任务自动处理或者编写应用扩展,许多成功的应用,诸如 GIMP、Emacs.........【阅读全文】

阅读(3020) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册