自定义博客皮肤

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

11月1日

9月10月,还以为秋招没能拿到offer,结果10月尾陆续送上offer。。。 虽然大公司的面试都gg了,但其实感觉是自己没准备好吧,回去好好传授下师弟们面经。。 今晚睡不着,打机看视频到现在还很精神,偶尔这样一下也挺high的,就是舍友说梦话吓人。。 话说得去实习,...

2016-11-01 03:49:42

阅读数 153

评论数 0

9月

恍恍惚惚已经快10月了,忙着找工作而导致生活好颓废的样子- - 调整一下,多去运动多学习,希望37能通过,京东和迅雷的面试也顺顺利利把~~

2016-09-23 15:28:57

阅读数 196

评论数 0

基于社交网络的用户与基于物品的协同过滤推荐算法-java

package WjPack; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import ja...

2016-08-03 16:25:27

阅读数 4629

评论数 15

7月

写完libevent的分析,马上就要秋招了啊,赶紧各种补姿势,加油~

2016-07-21 16:56:43

阅读数 177

评论数 0

[libevent]epoll_add()

static int epoll_add(void *arg, struct event *ev) { struct epollop *epollop = arg; struct epoll_event epev = {0, {0}}; struct evepoll *evep; int ...

2016-07-21 16:48:46

阅读数 242

评论数 0

[libevent]epoll_dispatch()

static int epoll_dispatch(struct event_base *base, void *arg, struct timeval *tv) { struct epollop *epollop = arg; struct epoll_event *events = epo...

2016-07-21 16:37:26

阅读数 197

评论数 0

[libevent]evsignal_process()

void evsignal_process(struct event_base *base) { struct evsignal_info *sig = &base->sig; struct event *ev, *next_ev; sig_atomic_t ncalls; ...

2016-07-21 16:27:09

阅读数 196

评论数 0

[libevent]evsignal_handler()

static void evsignal_handler(int sig) { int save_errno = errno; if (evsignal_base == NULL) { event_warn( "%s: received signal %d, but ha...

2016-07-21 16:23:20

阅读数 189

评论数 0

[libevent]_evsignal_restore_handler()

int _evsignal_restore_handler(struct event_base *base, int evsignal) { int ret = 0; struct evsignal_info *sig = &base->sig; #ifdef HAVE_SIGA...

2016-07-21 16:20:44

阅读数 188

评论数 0

[libevent]_evsignal_set_handler()

int _evsignal_set_handler(struct event_base *base, int evsignal, void (*handler)(int)) { #ifdef HAVE_SIGACTION struct sigaction sa; #else e...

2016-07-21 16:19:03

阅读数 214

评论数 0

[libevent]evsignal_add()

int evsignal_add(struct event *ev) { int evsignal; struct event_base *base = ev->ev_base; struct evsignal_info *sig = &ev->ev_base->s...

2016-07-21 16:16:06

阅读数 566

评论数 0

[libevent]evsignal_init()

int evsignal_init(struct event_base *base) { int i; /* * Our signal handler is going to write to one end of the socket * pair to wake up our ...

2016-07-21 16:11:03

阅读数 425

评论数 0

[libevent]event_process_active()

static void event_process_active(struct event_base *base) { struct event *ev; struct event_list *activeq = NULL; int i; short ncalls; for (i = ...

2016-07-21 16:02:33

阅读数 623

评论数 0

[libevent]timeout_process()

void timeout_process(struct event_base *base) { struct timeval now; struct event *ev; if (min_heap_empty(&base->timeheap)) return; get...

2016-07-21 15:58:49

阅读数 310

评论数 0

[libevent]gettime()

static int gettime(struct event_base *base, struct timeval *tp) { if (base->tv_cache.tv_sec) {//如果有时间缓存则将缓存赋值给tp *tp = base->tv_cache; ret...

2016-07-21 15:56:33

阅读数 457

评论数 0

[libevent]timeout_next()

static int timeout_next(struct event_base *base, struct timeval **tv_p) { struct timeval now; struct event *ev; struct timeval *tv = *tv_p; if (...

2016-07-21 15:54:40

阅读数 307

评论数 0

[libevent]event_base_loop()

int event_base_loop(struct event_base *base, int flags) { const struct eventop *evsel = base->evsel;//选择了epoll机制(如果之前选择了epoll) void *evbase = ba...

2016-07-21 15:29:49

阅读数 1078

评论数 0

[libevent]event_add()

int event_add(struct event *ev, const struct timeval *tv) { struct event_base *base = ev->ev_base;//与event关联的event_base const struct eventop *ev...

2016-07-21 15:10:52

阅读数 270

评论数 0

[libevent]event_set()

void event_set(struct event *ev, int fd, short events, void (*callback)(int, short, void *), void *arg) { /* Take the current base - caller needs...

2016-07-21 14:57:12

阅读数 241

评论数 0

[libevent]event_base_new()

struct event_base * event_base_new(void) { int i; struct event_base *base; //相当于一个reactor,声明后分配空间 if ((base = calloc(1, sizeof(struct event_base)...

2016-07-21 14:50:33

阅读数 1824

评论数 0

提示
确定要删除当前文章?
取消 删除