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
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/ext/{asyncengine_ext → asyncengine}/libuv/test/test-tcp-write-to-half-open-connection.c
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module AsyncEngine
|
2
|
+
|
3
|
+
def self.next_tick block1=nil, &block2
|
4
|
+
@_next_ticks << (block1 || block2)
|
5
|
+
_c_next_tick
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.execute_next_ticks
|
9
|
+
ticks, @_next_ticks = @_next_ticks, []
|
10
|
+
ticks.each do |cb|
|
11
|
+
begin
|
12
|
+
cb.call
|
13
|
+
rescue => e
|
14
|
+
AsyncEngine.send :manage_exception, e
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class << self
|
20
|
+
private :_c_next_tick
|
21
|
+
private :execute_next_ticks
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module AsyncEngine
|
2
|
+
|
3
|
+
def self.add_timer delay, block1=nil, &block2
|
4
|
+
_c_add_timer((delay*1000).to_i, nil, block1 || block2, nil)
|
5
|
+
true
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.add_periodic_timer interval, delay=nil, block1=nil, &block2
|
9
|
+
if delay
|
10
|
+
_c_add_timer((delay*1000).to_i, (interval*1000).to_i, block1 || block2, nil)
|
11
|
+
else
|
12
|
+
interval = (interval*1000).to_i
|
13
|
+
_c_add_timer(interval, interval, block1 || block2, nil)
|
14
|
+
end
|
15
|
+
true
|
16
|
+
end
|
17
|
+
|
18
|
+
class << self
|
19
|
+
private :_c_add_timer
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
class Timer
|
24
|
+
def initialize delay, block1=nil, &block2
|
25
|
+
@_cdata = AsyncEngine.send(:_c_add_timer, (delay*1000).to_i, nil, block1 || block2, self)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
class PeriodicTimer < Timer
|
31
|
+
def initialize interval, delay=nil, block1=nil, &block2
|
32
|
+
if delay
|
33
|
+
@_cdata = AsyncEngine.send(:_c_add_timer, (delay*1000).to_i, (interval*1000).to_i, block1 || block2, self)
|
34
|
+
else
|
35
|
+
interval = (interval*1000).to_i
|
36
|
+
@_cdata = AsyncEngine.send(:_c_add_timer, interval, interval, block1 || block2, self)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def set_interval interval
|
41
|
+
_c_set_interval (interval*1000).to_i
|
42
|
+
end
|
43
|
+
alias :interval= :set_interval
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
data/lib/asyncengine/version.rb
CHANGED
data/lib/asyncengine.rb
CHANGED
@@ -1,41 +1,65 @@
|
|
1
|
-
#
|
2
|
-
require "asyncengine_ext.so"
|
1
|
+
# AsyncEngine native C extension.
|
2
|
+
require "asyncengine/asyncengine_ext.so"
|
3
3
|
|
4
|
-
#
|
4
|
+
# AsyncEngine Ruby library files.
|
5
5
|
require "asyncengine/version.rb"
|
6
|
-
|
6
|
+
require "asyncengine/errors.rb"
|
7
|
+
require "asyncengine/timer.rb"
|
8
|
+
require "asyncengine/next_tick.rb"
|
9
|
+
require "asyncengine/udp.rb"
|
7
10
|
|
8
11
|
|
9
12
|
module AsyncEngine
|
10
13
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
if self.trap_signal signal_number
|
28
|
-
@trapped_signals[signal_number] = callback
|
29
|
-
true
|
14
|
+
@_is_running = false
|
15
|
+
@_exception_manager = nil
|
16
|
+
@_blocks = {}
|
17
|
+
@_next_ticks = []
|
18
|
+
|
19
|
+
def self.run
|
20
|
+
#raise AsyncEngine::Error, "AsyncEngine already running" if @_is_running
|
21
|
+
@_is_running = true
|
22
|
+
|
23
|
+
yield if block_given?
|
24
|
+
|
25
|
+
if _c_run
|
26
|
+
# _c_run does not terminate (it blocks) until all the handles end.
|
27
|
+
# If so, let's set again @_is_running to false and return true.
|
28
|
+
@_is_running = false
|
29
|
+
return true
|
30
30
|
else
|
31
|
-
raise "AsyncEngine
|
31
|
+
raise AsyncEngine::Error, "AsyncEngine failed to run"
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
def self.
|
36
|
-
|
35
|
+
def self.running?
|
36
|
+
@_is_running
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.exception_manager block1=nil, &block2
|
40
|
+
if (block = block1 || block2)
|
41
|
+
raise AsyncEngine::Error, "no block provided" unless block.respond_to? :call
|
42
|
+
@_exception_manager = block
|
43
|
+
else
|
44
|
+
@_exception_manager = nil
|
45
|
+
end
|
37
46
|
end
|
47
|
+
|
48
|
+
def self.manage_exception e
|
49
|
+
if @_exception_manager
|
50
|
+
@_exception_manager.call e
|
51
|
+
else
|
52
|
+
raise e
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class << self
|
57
|
+
private :_c_run
|
58
|
+
private :manage_exception
|
59
|
+
end
|
60
|
+
|
38
61
|
end
|
39
62
|
|
40
63
|
|
64
|
+
# Let's allow AE.xxxxx usage.
|
41
65
|
AE = AsyncEngine
|