asyncengine 0.0.1.testing → 0.0.1.testing1
Sign up to get free protection for your applications and to get access to all the features.
- data/asyncengine.gemspec +3 -3
- data/ext/asyncengine/ae_handle_common.c +100 -0
- data/ext/asyncengine/ae_handle_common.h +20 -0
- data/ext/asyncengine/ae_next_tick.c +51 -0
- data/ext/asyncengine/ae_next_tick.h +10 -0
- data/ext/asyncengine/ae_timer.c +152 -0
- data/ext/asyncengine/ae_timer.h +12 -0
- data/ext/asyncengine/ae_udp.c +24 -0
- data/ext/asyncengine/ae_udp.h +10 -0
- data/ext/asyncengine/asyncengine_ruby.c +72 -0
- data/ext/asyncengine/asyncengine_ruby.h +22 -0
- data/ext/{asyncengine_ext → asyncengine}/extconf.rb +7 -7
- data/ext/{asyncengine_ext → asyncengine}/libuv/AUTHORS +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/LICENSE +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/Makefile +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/README.md +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/build/gcc_version.py +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/common.gypi +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/config-mingw.mk +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/config-unix.mk +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/gyp_uv +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/include/ares.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/include/ares_version.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/include/uv-private/eio.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/include/uv-private/ev.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/include/uv-private/ngx-queue.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/include/uv-private/tree.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/include/uv-private/uv-unix.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/include/uv-private/uv-win.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/include/uv.h +0 -0
- data/ext/asyncengine/libuv/mkmf.log +24 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/AUTHORS +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/CHANGES +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/CMakeLists.txt +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/NEWS +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/README +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/README.cares +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/README.msvc +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/README.node +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/RELEASE-NOTES +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/TODO +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares__close_sockets.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares__close_sockets.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares__get_hostent.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares__get_hostent.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares__read_line.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares__read_line.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares__timeval.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares__timeval.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_cancel.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_cancel.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_data.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_data.h +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_data.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_destroy.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_destroy.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_dns.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_expand_name.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_expand_name.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_expand_string.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_expand_string.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_fds.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_fds.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_free_hostent.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_free_hostent.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_free_string.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_free_string.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_getenv.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_getenv.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_gethostbyaddr.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_gethostbyaddr.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_gethostbyname.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_gethostbyname.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_getnameinfo.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_getnameinfo.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_getopt.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_getopt.h +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_getopt.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_getsock.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_getsock.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_init.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_init.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_iphlpapi.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_ipv6.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_library_init.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_library_init.h +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_library_init.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_llist.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_llist.h +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_llist.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_mkquery.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_mkquery.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_nowarn.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_nowarn.h +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_nowarn.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_options.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_options.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_parse_a_reply.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_parse_a_reply.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_parse_aaaa_reply.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_parse_aaaa_reply.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_parse_mx_reply.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_parse_mx_reply.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_parse_ns_reply.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_parse_ns_reply.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_parse_ptr_reply.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_parse_ptr_reply.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_parse_srv_reply.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_parse_srv_reply.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_parse_txt_reply.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_parse_txt_reply.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_platform.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_platform.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_private.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_process.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_process.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_query.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_query.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_rules.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_search.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_search.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_send.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_send.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_setup.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_strcasecmp.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_strcasecmp.h +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_strcasecmp.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_strdup.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_strdup.h +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_strdup.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_strerror.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_strerror.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_timeout.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_timeout.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_version.c +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_version.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_writev.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/ares_writev.h +0 -0
- data/ext/asyncengine/libuv/src/ares/ares_writev.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/bitncmp.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/bitncmp.h +0 -0
- data/ext/asyncengine/libuv/src/ares/bitncmp.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/config_cygwin/ares_config.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/config_darwin/ares_config.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/config_freebsd/ares_config.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/config_linux/ares_config.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/config_netbsd/ares_config.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/config_openbsd/ares_config.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/config_sunos/ares_config.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/config_win32/ares_config.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/get_ver.awk +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/inet_net_pton.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/inet_net_pton.h +0 -0
- data/ext/asyncengine/libuv/src/ares/inet_net_pton.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/inet_ntop.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/inet_ntop.h +0 -0
- data/ext/asyncengine/libuv/src/ares/inet_ntop.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/nameser.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/setup_once.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/ares/windows_port.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/async.c +0 -0
- data/ext/asyncengine/libuv/src/unix/async.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/cares.c +0 -0
- data/ext/asyncengine/libuv/src/unix/cares.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/check.c +0 -0
- data/ext/asyncengine/libuv/src/unix/check.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/core.c +0 -0
- data/ext/asyncengine/libuv/src/unix/core.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/cygwin.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/darwin.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/dl.c +0 -0
- data/ext/asyncengine/libuv/src/unix/dl.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/Changes +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/LICENSE +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/Makefile.am +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/aclocal.m4 +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/autogen.sh +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/config.h.in +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/config_cygwin.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/config_darwin.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/config_freebsd.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/config_linux.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/config_netbsd.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/config_openbsd.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/config_sunos.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/configure.ac +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/demo.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/ecb.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/eio.3 +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/eio.c +0 -0
- data/ext/asyncengine/libuv/src/unix/eio/eio.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/eio.pod +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/libeio.m4 +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/eio/xthread.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/error.c +0 -0
- data/ext/asyncengine/libuv/src/unix/error.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/Changes +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/LICENSE +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/Makefile.am +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/Makefile.in +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/README +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/aclocal.m4 +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/autogen.sh +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/config.guess +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/config.h.in +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/config.sub +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/config_cygwin.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/config_darwin.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/config_freebsd.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/config_linux.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/config_netbsd.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/config_openbsd.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/config_sunos.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/configure +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/configure.ac +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/depcomp +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev++.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev.3 +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev.c +0 -0
- data/ext/asyncengine/libuv/src/unix/ev/ev.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev.pod +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev_epoll.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev_kqueue.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev_poll.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev_port.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev_select.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev_vars.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev_win32.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ev_wrap.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/event.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/event.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/install-sh +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/libev.m4 +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/ltmain.sh +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/missing +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/ev/mkinstalldirs +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/freebsd.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/fs.c +0 -0
- data/ext/asyncengine/libuv/src/unix/fs.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/idle.c +0 -0
- data/ext/asyncengine/libuv/src/unix/idle.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/internal.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/kqueue.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/linux/core.c +0 -0
- data/ext/asyncengine/libuv/src/unix/linux/core.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/linux/inotify.c +0 -0
- data/ext/asyncengine/libuv/src/unix/linux/inotify.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/linux/syscalls.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/linux/syscalls.h +0 -0
- data/ext/asyncengine/libuv/src/unix/linux/syscalls.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/loop.c +0 -0
- data/ext/asyncengine/libuv/src/unix/loop.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/netbsd.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/openbsd.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/pipe.c +0 -0
- data/ext/asyncengine/libuv/src/unix/pipe.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/prepare.c +0 -0
- data/ext/asyncengine/libuv/src/unix/prepare.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/process.c +0 -0
- data/ext/asyncengine/libuv/src/unix/process.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/stream.c +0 -0
- data/ext/asyncengine/libuv/src/unix/stream.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/sunos.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/tcp.c +0 -0
- data/ext/asyncengine/libuv/src/unix/tcp.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/thread.c +0 -0
- data/ext/asyncengine/libuv/src/unix/thread.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/timer.c +0 -0
- data/ext/asyncengine/libuv/src/unix/timer.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/tty.c +0 -0
- data/ext/asyncengine/libuv/src/unix/tty.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/udp.c +0 -0
- data/ext/asyncengine/libuv/src/unix/udp.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/uv-eio.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/unix/uv-eio.h +0 -0
- data/ext/asyncengine/libuv/src/unix/uv-eio.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/uv-common.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/uv-common.h +0 -0
- data/ext/asyncengine/libuv/src/uv-common.o +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/async.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/cares.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/core.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/dl.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/error.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/fs-event.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/fs.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/getaddrinfo.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/handle.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/internal.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/loop-watcher.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/pipe.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/process.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/req.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/stream.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/tcp.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/thread.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/threadpool.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/timer.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/tty.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/udp.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/util.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/winapi.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/winapi.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/winsock.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/src/win/winsock.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-ares.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-getaddrinfo.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-list.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-ping-pongs.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-pound.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-pump.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-sizes.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-spawn.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-tcp-write-batch.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-thread.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/benchmark-udp-packet-storm.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/blackhole-server.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/dns-server.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/echo-server.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/fixtures/empty_file +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/fixtures/load_error.node +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/run-benchmarks.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/run-tests.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/runner-unix.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/runner-unix.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/runner-win.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/runner-win.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/runner.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/runner.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/task.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-async.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-callback-stack.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-connection-fail.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-counters-init.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-cwd-and-chdir.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-delayed-accept.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-dlerror.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-eio-overflow.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-error.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-fail-always.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-fs-event.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-fs.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-get-currentexe.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-get-loadavg.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-get-memory.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-getaddrinfo.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-gethostbyname.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-getsockname.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-hrtime.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-idle.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-ipc-send-recv.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-ipc.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-list.h +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-loop-handles.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-multiple-listen.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-mutexes.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-pass-always.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-ping-pong.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-pipe-bind-error.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-pipe-connect-error.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-platform-output.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-process-title.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-ref.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-run-once.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-shutdown-close.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-shutdown-eof.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-spawn.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-stdio-over-pipes.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tcp-bind-error.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tcp-bind6-error.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tcp-close.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tcp-connect-error.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tcp-connect6-error.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tcp-flags.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tcp-write-error.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tcp-write-to-half-open-connection.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tcp-writealot.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-thread.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-threadpool.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-timer-again.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-timer.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tty.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-udp-dgram-too-big.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-udp-ipv6.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-udp-multicast-join.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-udp-multicast-ttl.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-udp-options.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-udp-send-and-recv.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-util.c +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/uv.gyp +0 -0
- data/ext/{asyncengine_ext → asyncengine}/libuv/vcbuild.bat +0 -0
- data/lib/asyncengine/asyncengine_ext.so +0 -0
- data/lib/asyncengine/errors.rb +5 -0
- data/lib/asyncengine/next_tick.rb +24 -0
- data/lib/asyncengine/timer.rb +46 -0
- data/lib/asyncengine/udp.rb +5 -0
- data/lib/asyncengine/version.rb +1 -1
- data/lib/asyncengine.rb +50 -26
- metadata +399 -316
- data/ext/asyncengine_ext/asyncengine_ruby.c +0 -82
@@ -1,82 +0,0 @@
|
|
1
|
-
#include <ruby.h>
|
2
|
-
//#include <libuv/include/uv.h> // No hace falta por el dir_config() en extconf.rb.
|
3
|
-
#include <uv.h>
|
4
|
-
#include <signal.h>
|
5
|
-
|
6
|
-
|
7
|
-
static VALUE mAsyncEngine;
|
8
|
-
static ID id_trapped_signals;
|
9
|
-
static ID method_call;
|
10
|
-
|
11
|
-
void timer_callback(uv_timer_t* handle, int status)
|
12
|
-
{
|
13
|
-
rb_funcall(mAsyncEngine, rb_intern("timer_cb"), 0, 0);
|
14
|
-
}
|
15
|
-
|
16
|
-
void signal_handler(int signal_number)
|
17
|
-
{
|
18
|
-
VALUE trapped_signals = rb_ivar_get(mAsyncEngine, id_trapped_signals);
|
19
|
-
rb_funcall(rb_hash_lookup(trapped_signals, INT2FIX(signal_number)), method_call, 0, 0);
|
20
|
-
}
|
21
|
-
|
22
|
-
//void (*uv_prepare_cb)(uv_prepare_t* handle, int status);
|
23
|
-
|
24
|
-
|
25
|
-
VALUE AsyncEngine_trap_signal(VALUE self, VALUE rb_signal_number)
|
26
|
-
{
|
27
|
-
// TODO: Check http://linux.die.net/man/2/sigaction (recommended by http://linux.die.net/man/2/signal).
|
28
|
-
// TODO: En teoria devuelve EINVAL si el numero de signal pasado no existe, pero me da error porque
|
29
|
-
// no hay EINVAL en signal.h.
|
30
|
-
if (signal(FIX2INT(rb_signal_number), signal_handler) < 0)
|
31
|
-
return Qfalse;
|
32
|
-
return Qtrue;
|
33
|
-
}
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
VALUE _uv_run(void *data)
|
38
|
-
{
|
39
|
-
int res;
|
40
|
-
res = uv_run(uv_default_loop());
|
41
|
-
printf("NOTICE: uv_run() ends with status %d\n", res);
|
42
|
-
}
|
43
|
-
|
44
|
-
// Starts the event loop and adds one reference to ensure loop will run.
|
45
|
-
VALUE AsyncEngine_start(VALUE self)
|
46
|
-
{
|
47
|
-
uv_ref(uv_default_loop());
|
48
|
-
if (rb_block_given_p()) {
|
49
|
-
rb_yield(Qnil);
|
50
|
-
}
|
51
|
-
|
52
|
-
// uv_timer_t* handle = (uv_timer_t*) malloc(sizeof(uv_timer_t));
|
53
|
-
// uv_timer_init(uv_default_loop(), handle);
|
54
|
-
// uv_timer_start(handle, timer_callback, 2000, 1000);
|
55
|
-
|
56
|
-
// TODO: Habría que solbar el GVL porque uv_run bloquea y otros threads de Ruby no funcarian jamas.
|
57
|
-
// uv_prepare() se ejecuta en cada inicio de iteracion. Que llame a una funcion de Ruby que mire los
|
58
|
-
// signals recibidos.
|
59
|
-
//uv_run(uv_default_loop());
|
60
|
-
// TODO: Tal vez aqui tenga que coger de nuevo el GIL.
|
61
|
-
// EJ: https://github.com/saghul/pyuv/blob/master/src/loop.c#L76
|
62
|
-
|
63
|
-
if (rb_thread_blocking_region(_uv_run, 0, RUBY_UBF_IO, 0) == Qfalse) {
|
64
|
-
// an error occurred, we're not active anymore
|
65
|
-
//MARK_CONN_INACTIVE(self);
|
66
|
-
rb_raise(rb_eSystemCallError, "rb_thread_blocking_region returns false !!!");
|
67
|
-
}
|
68
|
-
printf("return self !!!!!!!\n");
|
69
|
-
|
70
|
-
return self;
|
71
|
-
}
|
72
|
-
|
73
|
-
|
74
|
-
void Init_asyncengine_ext()
|
75
|
-
{
|
76
|
-
mAsyncEngine = rb_define_module("AsyncEngine");
|
77
|
-
rb_define_module_function(mAsyncEngine, "start", AsyncEngine_start, 0);
|
78
|
-
rb_define_module_function(mAsyncEngine, "trap_signal", AsyncEngine_trap_signal, 1);
|
79
|
-
|
80
|
-
id_trapped_signals = rb_intern("@trapped_signals");
|
81
|
-
method_call = rb_intern("call");
|
82
|
-
}
|