提交 6ab888c9c62bbae3fb8be49beeb2a7add5873058

作者 LJH 李佳桓
1 个父辈 26a9317d

add

  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 +
... ...
注册登录 后发表评论