上一页 1 ··· 3 4 5 6 7 8 下一页

2013年9月28日

摘要: 初学erlang网上有使用eclipse的,有使用emacs的,尝试了一下, 感觉太麻烦,来试试notepad++吧。有什么新使用方法会再更新上来,for you for me.1.语法高亮:Syntax Highlighing for Erlang in NotePad++下载地址,无需FQ:ht... 阅读全文
posted @ 2013-09-28 23:34 solohac 阅读(523) 评论(0) 推荐(0) 编辑

2013年9月26日

摘要: Linux获取线程tid线程名123456//thread namechar cThreadName[32] = {0};prctl(PR_GET_NAME, (unsigned long)chThreadName);//tidsyscall(SYS_gettid) 阅读全文
posted @ 2013-09-26 11:17 solohac 阅读(2384) 评论(0) 推荐(0) 编辑

2013年9月22日

摘要: 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556#include #include #include #ifndef WIN32 #in... 阅读全文
posted @ 2013-09-22 19:25 solohac 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 程序执行结果:每隔2秒,触发一次定时器。(2)98行:evtimer_assign在event.h中定义如下:再来看看event_assign函数:ev 要初始化的事件对象base 事件对象要指定到哪个even_base上fd 文件描述符type 事件类型fn 事件触发时的回调函数arg 回调函数传... 阅读全文
posted @ 2013-09-22 14:18 solohac 阅读(667) 评论(0) 推荐(0) 编辑

2013年9月9日

摘要: 我们都知道,使用 malloc/calloc 等分配内存的函数时,一定要检查其返回值是否为“空指针”(亦即检查分配内存的操作是否成功),这是良好的编程习惯,也是编写可靠程序所必需的。但是,如果你简单地把这一招应用到 new 上,那可就不一定正确了。我经常看到类似这样的代码: int* p = new... 阅读全文
posted @ 2013-09-09 14:43 solohac 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 转载地址:http://www.cnblogs.com/hanyonglu/archive/2011/05/07/2039916.html 本文主要介绍va_start和va_end的使用及原理。 在以前的一篇帖子Format MessageBox 详解中曾使用到va_start和va_end这两... 阅读全文
posted @ 2013-09-09 10:54 solohac 阅读(155) 评论(0) 推荐(0) 编辑

2013年8月27日

摘要: 1.Could not find the main class: org.apache.zookeeper.server.quorum.QuorumPeerMain. Program will exit.安装包损坏,找不到对应文件。重新安装。2.2013-03-28 11:13:32,205 - I... 阅读全文
posted @ 2013-08-27 09:30 solohac 阅读(2283) 评论(0) 推荐(0) 编辑
摘要: 我写了一个必然会崩溃的程序,名字为 test :#include "stdlib.h"#include "unistd.h"int main(){ char *pTest = NULL; memcpy(pTest , "123", 111); return 0;}编译后,直接执行,会在当前目录... 阅读全文
posted @ 2013-08-27 09:26 solohac 阅读(1535) 评论(0) 推荐(0) 编辑

2013年8月20日

摘要: Basicbasic.ack(delivery-tag delivery-tag, bit multiple)Support: fullAcknowledge one or more messages.Acknowledge一个或多个messageWhen sent by the client, t... 阅读全文
posted @ 2013-08-20 21:05 solohac 阅读(339) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/otter 阅读全文
posted @ 2013-08-20 09:35 solohac 阅读(172) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页

导航