Sha256: 796deb34c84881056b7e1618d263b424f655f8e660e47f3db6a3017935b89d0d
Contents?: true
Size: 966 Bytes
Versions: 4
Compression:
Stored size: 966 Bytes
Contents
/* * Copyright (c) 2011 Tony Arcieri. Distributed under the MIT License. See * LICENSE.txt for further details. */ #ifndef NIO4R_H #define NIO4R_H #include "libev.h" #include "ruby.h" #include "ruby/io.h" struct NIO_Selector { struct ev_loop *ev_loop; struct ev_timer timer; /* for timeouts */ struct ev_io wakeup; int ready_count; int closed, selecting; int wakeup_reader, wakeup_writer; volatile int wakeup_fired; VALUE ready_array; }; struct NIO_callback_data { VALUE *monitor; struct NIO_Selector *selector; }; struct NIO_Monitor { VALUE self; int interests, revents; struct ev_io ev_io; struct NIO_Selector *selector; }; struct NIO_ByteBuffer { char *buffer; int position, limit, capacity, mark; }; /* Thunk between libev callbacks in NIO::Monitors and NIO::Selectors */ void NIO_Selector_monitor_callback(struct ev_loop *ev_loop, struct ev_io *io, int revents); #endif /* NIO4R_H */
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nio4r-2.6.1-java | ext/nio4r/nio4r.h |
nio4r-2.6.1 | ext/nio4r/nio4r.h |
nio4r-2.6.0-java | ext/nio4r/nio4r.h |
nio4r-2.6.0 | ext/nio4r/nio4r.h |