Sha256: 43cacd4c20987582bad56f6eab196b052642fcc58d5ede39a2bd7a25d9c6227c

Contents?: true

Size: 658 Bytes

Versions: 13

Compression:

Stored size: 658 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

13 entries across 13 versions & 1 rubygems

Version Path
rbczmq-1.7.9 ext/rbczmq/poller.h
rbczmq-1.7.8 ext/rbczmq/poller.h
rbczmq-1.7.7 ext/rbczmq/poller.h
rbczmq-1.7.6 ext/rbczmq/poller.h
rbczmq-1.7.5 ext/rbczmq/poller.h
rbczmq-1.7.4 ext/rbczmq/poller.h
rbczmq-1.7.3 ext/rbczmq/poller.h
rbczmq-1.7.2 ext/rbczmq/poller.h
rbczmq-1.7.1 ext/rbczmq/poller.h
rbczmq-1.7.0 ext/rbczmq/poller.h
rbczmq-1.6.4 ext/rbczmq/poller.h
rbczmq-1.6.2 ext/rbczmq/poller.h
rbczmq-1.6 ext/rbczmq/poller.h