예제 #1
0
/* Create a new channel to distribute signals */
int mk_event_channel_create(mk_event_loop_t *loop, int *r_fd, int *w_fd)
{
    mk_event_ctx_t *ctx;
    ctx = loop->data;

    return _mk_event_channel_create(ctx, r_fd, w_fd);
}
예제 #2
0
/* Create a new channel to distribute signals */
int mk_event_channel_create(struct mk_event_loop *loop,
                            int *r_fd, int *w_fd,
                            void *data)
{
    struct mk_event_ctx *ctx;

    mk_bug(!data);
    ctx = loop->data;
    return _mk_event_channel_create(ctx, r_fd, w_fd, data);
}