正在显示
1 个修改的文件
包含
33 行增加
和
0 行删除
src/server/spserver/event_msgqueue.h
0 → 100644
1 | +/* | ||
2 | + * event_msgqueue.h | ||
3 | + * | ||
4 | + * Libevent threaded message passing primitives header | ||
5 | + * | ||
6 | + * Andrew Danforth <acd@weirdness.net>, October 2006 | ||
7 | + * | ||
8 | + * Copyright (c) Andrew Danforth, 2006 | ||
9 | + * | ||
10 | + */ | ||
11 | + | ||
12 | +#ifndef _EVENT_MSGQUEUE_H_ | ||
13 | +#define _EVENT_MSGQUEUE_H_ | ||
14 | + | ||
15 | +#include <event.h> | ||
16 | + | ||
17 | +#ifdef __cplusplus | ||
18 | +extern "C" { | ||
19 | +#endif | ||
20 | + | ||
21 | +struct event_msgqueue; | ||
22 | + | ||
23 | +struct event_msgqueue *msgqueue_new(struct event_base *, unsigned int, void (*)(void *, void *), void *); | ||
24 | +int msgqueue_push(struct event_msgqueue *, void *); | ||
25 | +unsigned int msgqueue_length(struct event_msgqueue *); | ||
26 | +void msgqueue_destroy(struct event_msgqueue*); | ||
27 | + | ||
28 | +#ifdef __cplusplus | ||
29 | +} | ||
30 | +#endif | ||
31 | + | ||
32 | +#endif | ||
33 | + |
请
注册
或
登录
后发表评论