Sha256: 6cd982b7a097e8447c840df744711e1b89ccce8f8c8c51776b02197034e59fc3

Contents?: true

Size: 657 Bytes

Versions: 10

Compression:

Stored size: 657 Bytes

Contents

#ifndef RBCZMQ_POLLER_H
#define RBCZMQ_POLLER_H

typedef struct {
    VALUE pollables;
    VALUE readables;
    VALUE writables;
    zmq_pollitem_t *pollset;
    int poll_size;
    Bool dirty;
    Bool verbose;
} zmq_poll_wrapper;

#define ZmqAssertPoller(obj) ZmqAssertType(obj, rb_cZmqPoller, "ZMQ::Poller")
#define ZmqGetPoller(obj) \
    zmq_poll_wrapper *poller = NULL; \
    ZmqAssertPoller(obj); \
    Data_Get_Struct(obj, zmq_poll_wrapper, poller); \
    if (!poller) rb_raise(rb_eTypeError, "uninitialized ZMQ poller!");

struct nogvl_poll_args {
    zmq_pollitem_t *items;
    int nitems;
    long timeout;
};

void _init_rb_czmq_poller();

#endif

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rbczmq-1.0 ext/rbczmq/poller.h
rbczmq-0.9 ext/rbczmq/poller.h
rbczmq-0.8 ext/rbczmq/poller.h
rbczmq-0.7 ext/rbczmq/poller.h
rbczmq-0.6 ext/rbczmq/poller.h
rbczmq-0.5 ext/rbczmq/poller.h
rbczmq-0.4 ext/rbczmq/poller.h
rbczmq-0.3 ext/rbczmq/poller.h
rbczmq-0.2 ext/rbczmq/poller.h
rbczmq-0.1 ext/rbczmq/poller.h