时间树
iSoo
长夜将至,我从今开始守望,至死方休。我将不娶妻、不封地、不生子。我将不戴宝冠,不争荣宠。我将尽忠职守,生死於斯。我是黑暗中的利剑,长城上的守卫。我是抵御寒冷的烈焰,破晓时分的光线,唤醒眠者的号角,守护王国的坚盾。我将生命与荣耀献给守夜人,今夜如此,夜夜皆然。
展开
-
读libevent源代码-为何要使用syscall
syscall(2) - Linux man pageNamesyscall - indirect system callSynopsis#define _GNU_SOURCE /* See feature_test_macros(7) */#include unistd.h>#includesys/syscall.h> /* For SYS_xxx defi原创 2014-02-08 13:27:59 · 825 阅读 · 0 评论 -
读libevent源代码-多路复用IO接口的封装
libevent库通过数据结构struct eventop封装底层的多路复用IO接口/** Structure to define the backend of a given event_base. */struct eventop { /** The name of this backend. */ const char *name; /** Function to set up原创 2014-02-08 13:58:12 · 766 阅读 · 0 评论