ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.482 by root, Sat Jul 28 04:15:15 2018 UTC vs.
Revision 1.488 by root, Fri Dec 21 06:57:09 2018 UTC

1/* 1/*
2 * libev event processing core, watcher management 2 * libev event processing core, watcher management
3 * 3 *
4 * Copyright (c) 2007,2008,2009,2010,2011,2012,2013 Marc Alexander Lehmann <libev@schmorp.de> 4 * Copyright (c) 2007-2018 Marc Alexander Lehmann <libev@schmorp.de>
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without modifica- 7 * Redistribution and use in source and binary forms, with or without modifica-
8 * tion, are permitted provided that the following conditions are met: 8 * tion, are permitted provided that the following conditions are met:
9 * 9 *
162# define EV_USE_EVENTFD 0 162# define EV_USE_EVENTFD 0
163# endif 163# endif
164 164
165#endif 165#endif
166 166
167/* OS X, in its infinite idiocy, actually HARDCODES
168 * a limit of 1024 into their select. Where people have brains,
169 * OS X engineers apparently have a vacuum. Or maybe they were
170 * ordered to have a vacuum, or they do anything for money.
171 * This might help. Or not.
172 * Note that this must be defined early, as other include files
173 * will rely on this define as well.
174 */
175#define _DARWIN_UNLIMITED_SELECT 1
176
167#include <stdlib.h> 177#include <stdlib.h>
168#include <string.h> 178#include <string.h>
169#include <fcntl.h> 179#include <fcntl.h>
170#include <stddef.h> 180#include <stddef.h>
171 181
208# ifndef EV_SELECT_IS_WINSOCKET 218# ifndef EV_SELECT_IS_WINSOCKET
209# define EV_SELECT_IS_WINSOCKET 1 219# define EV_SELECT_IS_WINSOCKET 1
210# endif 220# endif
211# undef EV_AVOID_STDIO 221# undef EV_AVOID_STDIO
212#endif 222#endif
213
214/* OS X, in its infinite idiocy, actually HARDCODES
215 * a limit of 1024 into their select. Where people have brains,
216 * OS X engineers apparently have a vacuum. Or maybe they were
217 * ordered to have a vacuum, or they do anything for money.
218 * This might help. Or not.
219 */
220#define _DARWIN_UNLIMITED_SELECT 1
221 223
222/* this block tries to deduce configuration from header-defined symbols and defaults */ 224/* this block tries to deduce configuration from header-defined symbols and defaults */
223 225
224/* try to deduce the maximum number of signals on this platform */ 226/* try to deduce the maximum number of signals on this platform */
225#if defined EV_NSIG 227#if defined EV_NSIG
607 #define ECB_CLANG_EXTENSION(x) 0 609 #define ECB_CLANG_EXTENSION(x) 0
608#endif 610#endif
609 611
610#define ECB_CPP (__cplusplus+0) 612#define ECB_CPP (__cplusplus+0)
611#define ECB_CPP11 (__cplusplus >= 201103L) 613#define ECB_CPP11 (__cplusplus >= 201103L)
614#define ECB_CPP14 (__cplusplus >= 201402L)
615#define ECB_CPP17 (__cplusplus >= 201703L)
612 616
613#if ECB_CPP 617#if ECB_CPP
614 #define ECB_C 0 618 #define ECB_C 0
615 #define ECB_STDC_VERSION 0 619 #define ECB_STDC_VERSION 0
616#else 620#else
618 #define ECB_STDC_VERSION __STDC_VERSION__ 622 #define ECB_STDC_VERSION __STDC_VERSION__
619#endif 623#endif
620 624
621#define ECB_C99 (ECB_STDC_VERSION >= 199901L) 625#define ECB_C99 (ECB_STDC_VERSION >= 199901L)
622#define ECB_C11 (ECB_STDC_VERSION >= 201112L) 626#define ECB_C11 (ECB_STDC_VERSION >= 201112L)
627#define ECB_C17 (ECB_STDC_VERSION >= 201710L)
623 628
624#if ECB_CPP 629#if ECB_CPP
625 #define ECB_EXTERN_C extern "C" 630 #define ECB_EXTERN_C extern "C"
626 #define ECB_EXTERN_C_BEG ECB_EXTERN_C { 631 #define ECB_EXTERN_C_BEG ECB_EXTERN_C {
627 #define ECB_EXTERN_C_END } 632 #define ECB_EXTERN_C_END }
656#ifndef ECB_MEMORY_FENCE 661#ifndef ECB_MEMORY_FENCE
657 #if ECB_GCC_VERSION(2,5) || defined __INTEL_COMPILER || (__llvm__ && __GNUC__) || __SUNPRO_C >= 0x5110 || __SUNPRO_CC >= 0x5110 662 #if ECB_GCC_VERSION(2,5) || defined __INTEL_COMPILER || (__llvm__ && __GNUC__) || __SUNPRO_C >= 0x5110 || __SUNPRO_CC >= 0x5110
658 #if __i386 || __i386__ 663 #if __i386 || __i386__
659 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory") 664 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory")
660 #define ECB_MEMORY_FENCE_ACQUIRE __asm__ __volatile__ ("" : : : "memory") 665 #define ECB_MEMORY_FENCE_ACQUIRE __asm__ __volatile__ ("" : : : "memory")
661 #define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("") 666 #define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("" : : : "memory")
662 #elif ECB_GCC_AMD64 667 #elif ECB_GCC_AMD64
663 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mfence" : : : "memory") 668 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("mfence" : : : "memory")
664 #define ECB_MEMORY_FENCE_ACQUIRE __asm__ __volatile__ ("" : : : "memory") 669 #define ECB_MEMORY_FENCE_ACQUIRE __asm__ __volatile__ ("" : : : "memory")
665 #define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("") 670 #define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("" : : : "memory")
666 #elif __powerpc__ || __ppc__ || __powerpc64__ || __ppc64__ 671 #elif __powerpc__ || __ppc__ || __powerpc64__ || __ppc64__
667 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("sync" : : : "memory") 672 #define ECB_MEMORY_FENCE __asm__ __volatile__ ("sync" : : : "memory")
668 #elif defined __ARM_ARCH_2__ \ 673 #elif defined __ARM_ARCH_2__ \
669 || defined __ARM_ARCH_3__ || defined __ARM_ARCH_3M__ \ 674 || defined __ARM_ARCH_3__ || defined __ARM_ARCH_3M__ \
670 || defined __ARM_ARCH_4__ || defined __ARM_ARCH_4T__ \ 675 || defined __ARM_ARCH_4__ || defined __ARM_ARCH_4T__ \
1675{ 1680{
1676 write (STDERR_FILENO, msg, strlen (msg)); 1681 write (STDERR_FILENO, msg, strlen (msg));
1677} 1682}
1678#endif 1683#endif
1679 1684
1680static void (*syserr_cb)(const char *msg) EV_THROW; 1685static void (*syserr_cb)(const char *msg) EV_NOEXCEPT;
1681 1686
1682ecb_cold 1687ecb_cold
1683void 1688void
1684ev_set_syserr_cb (void (*cb)(const char *msg) EV_THROW) EV_THROW 1689ev_set_syserr_cb (void (*cb)(const char *msg) EV_NOEXCEPT) EV_NOEXCEPT
1685{ 1690{
1686 syserr_cb = cb; 1691 syserr_cb = cb;
1687} 1692}
1688 1693
1689noinline ecb_cold 1694noinline ecb_cold
1708 abort (); 1713 abort ();
1709 } 1714 }
1710} 1715}
1711 1716
1712static void * 1717static void *
1713ev_realloc_emul (void *ptr, long size) EV_THROW 1718ev_realloc_emul (void *ptr, long size) EV_NOEXCEPT
1714{ 1719{
1715 /* some systems, notably openbsd and darwin, fail to properly 1720 /* some systems, notably openbsd and darwin, fail to properly
1716 * implement realloc (x, 0) (as required by both ansi c-89 and 1721 * implement realloc (x, 0) (as required by both ansi c-89 and
1717 * the single unix specification, so work around them here. 1722 * the single unix specification, so work around them here.
1718 * recently, also (at least) fedora and debian started breaking it, 1723 * recently, also (at least) fedora and debian started breaking it,
1724 1729
1725 free (ptr); 1730 free (ptr);
1726 return 0; 1731 return 0;
1727} 1732}
1728 1733
1729static void *(*alloc)(void *ptr, long size) EV_THROW = ev_realloc_emul; 1734static void *(*alloc)(void *ptr, long size) EV_NOEXCEPT = ev_realloc_emul;
1730 1735
1731ecb_cold 1736ecb_cold
1732void 1737void
1733ev_set_allocator (void *(*cb)(void *ptr, long size) EV_THROW) EV_THROW 1738ev_set_allocator (void *(*cb)(void *ptr, long size) EV_NOEXCEPT) EV_NOEXCEPT
1734{ 1739{
1735 alloc = cb; 1740 alloc = cb;
1736} 1741}
1737 1742
1738inline_speed void * 1743inline_speed void *
1855 1860
1856/*****************************************************************************/ 1861/*****************************************************************************/
1857 1862
1858#ifndef EV_HAVE_EV_TIME 1863#ifndef EV_HAVE_EV_TIME
1859ev_tstamp 1864ev_tstamp
1860ev_time (void) EV_THROW 1865ev_time (void) EV_NOEXCEPT
1861{ 1866{
1862#if EV_USE_REALTIME 1867#if EV_USE_REALTIME
1863 if (expect_true (have_realtime)) 1868 if (expect_true (have_realtime))
1864 { 1869 {
1865 struct timespec ts; 1870 struct timespec ts;
1889 return ev_time (); 1894 return ev_time ();
1890} 1895}
1891 1896
1892#if EV_MULTIPLICITY 1897#if EV_MULTIPLICITY
1893ev_tstamp 1898ev_tstamp
1894ev_now (EV_P) EV_THROW 1899ev_now (EV_P) EV_NOEXCEPT
1895{ 1900{
1896 return ev_rt_now; 1901 return ev_rt_now;
1897} 1902}
1898#endif 1903#endif
1899 1904
1900void 1905void
1901ev_sleep (ev_tstamp delay) EV_THROW 1906ev_sleep (ev_tstamp delay) EV_NOEXCEPT
1902{ 1907{
1903 if (delay > 0.) 1908 if (delay > 0.)
1904 { 1909 {
1905#if EV_USE_NANOSLEEP 1910#if EV_USE_NANOSLEEP
1906 struct timespec ts; 1911 struct timespec ts;
1992{ 1997{
1993} 1998}
1994 1999
1995noinline 2000noinline
1996void 2001void
1997ev_feed_event (EV_P_ void *w, int revents) EV_THROW 2002ev_feed_event (EV_P_ void *w, int revents) EV_NOEXCEPT
1998{ 2003{
1999 W w_ = (W)w; 2004 W w_ = (W)w;
2000 int pri = ABSPRI (w_); 2005 int pri = ABSPRI (w_);
2001 2006
2002 if (expect_false (w_->pending)) 2007 if (expect_false (w_->pending))
2063 if (expect_true (!anfd->reify)) 2068 if (expect_true (!anfd->reify))
2064 fd_event_nocheck (EV_A_ fd, revents); 2069 fd_event_nocheck (EV_A_ fd, revents);
2065} 2070}
2066 2071
2067void 2072void
2068ev_feed_fd_event (EV_P_ int fd, int revents) EV_THROW 2073ev_feed_fd_event (EV_P_ int fd, int revents) EV_NOEXCEPT
2069{ 2074{
2070 if (fd >= 0 && fd < anfdmax) 2075 if (fd >= 0 && fd < anfdmax)
2071 fd_event_nocheck (EV_A_ fd, revents); 2076 fd_event_nocheck (EV_A_ fd, revents);
2072} 2077}
2073 2078
2473#endif 2478#endif
2474 { 2479 {
2475#ifdef _WIN32 2480#ifdef _WIN32
2476 WSABUF buf; 2481 WSABUF buf;
2477 DWORD sent; 2482 DWORD sent;
2478 buf.buf = &buf; 2483 buf.buf = (char *)&buf;
2479 buf.len = 1; 2484 buf.len = 1;
2480 WSASend (EV_FD_TO_WIN32_HANDLE (evpipe [1]), &buf, 1, &sent, 0, 0, 0); 2485 WSASend (EV_FD_TO_WIN32_HANDLE (evpipe [1]), &buf, 1, &sent, 0, 0, 0);
2481#else 2486#else
2482 write (evpipe [1], &(evpipe [1]), 1); 2487 write (evpipe [1], &(evpipe [1]), 1);
2483#endif 2488#endif
2555} 2560}
2556 2561
2557/*****************************************************************************/ 2562/*****************************************************************************/
2558 2563
2559void 2564void
2560ev_feed_signal (int signum) EV_THROW 2565ev_feed_signal (int signum) EV_NOEXCEPT
2561{ 2566{
2562#if EV_MULTIPLICITY 2567#if EV_MULTIPLICITY
2563 EV_P; 2568 EV_P;
2564 ECB_MEMORY_FENCE_ACQUIRE; 2569 ECB_MEMORY_FENCE_ACQUIRE;
2565 EV_A = signals [signum - 1].loop; 2570 EV_A = signals [signum - 1].loop;
2582 ev_feed_signal (signum); 2587 ev_feed_signal (signum);
2583} 2588}
2584 2589
2585noinline 2590noinline
2586void 2591void
2587ev_feed_signal_event (EV_P_ int signum) EV_THROW 2592ev_feed_signal_event (EV_P_ int signum) EV_NOEXCEPT
2588{ 2593{
2589 WL w; 2594 WL w;
2590 2595
2591 if (expect_false (signum <= 0 || signum >= EV_NSIG)) 2596 if (expect_false (signum <= 0 || signum >= EV_NSIG))
2592 return; 2597 return;
2709#if EV_USE_SELECT 2714#if EV_USE_SELECT
2710# include "ev_select.c" 2715# include "ev_select.c"
2711#endif 2716#endif
2712 2717
2713ecb_cold int 2718ecb_cold int
2714ev_version_major (void) EV_THROW 2719ev_version_major (void) EV_NOEXCEPT
2715{ 2720{
2716 return EV_VERSION_MAJOR; 2721 return EV_VERSION_MAJOR;
2717} 2722}
2718 2723
2719ecb_cold int 2724ecb_cold int
2720ev_version_minor (void) EV_THROW 2725ev_version_minor (void) EV_NOEXCEPT
2721{ 2726{
2722 return EV_VERSION_MINOR; 2727 return EV_VERSION_MINOR;
2723} 2728}
2724 2729
2725/* return true if we are running with elevated privileges and should ignore env variables */ 2730/* return true if we are running with elevated privileges and should ignore env variables */
2734#endif 2739#endif
2735} 2740}
2736 2741
2737ecb_cold 2742ecb_cold
2738unsigned int 2743unsigned int
2739ev_supported_backends (void) EV_THROW 2744ev_supported_backends (void) EV_NOEXCEPT
2740{ 2745{
2741 unsigned int flags = 0; 2746 unsigned int flags = 0;
2742 2747
2743 if (EV_USE_PORT ) flags |= EVBACKEND_PORT; 2748 if (EV_USE_PORT ) flags |= EVBACKEND_PORT;
2744 if (EV_USE_KQUEUE) flags |= EVBACKEND_KQUEUE; 2749 if (EV_USE_KQUEUE) flags |= EVBACKEND_KQUEUE;
2749 return flags; 2754 return flags;
2750} 2755}
2751 2756
2752ecb_cold 2757ecb_cold
2753unsigned int 2758unsigned int
2754ev_recommended_backends (void) EV_THROW 2759ev_recommended_backends (void) EV_NOEXCEPT
2755{ 2760{
2756 unsigned int flags = ev_supported_backends (); 2761 unsigned int flags = ev_supported_backends ();
2757 2762
2758#ifndef __NetBSD__ 2763#ifndef __NetBSD__
2759 /* kqueue is borked on everything but netbsd apparently */ 2764 /* kqueue is borked on everything but netbsd apparently */
2772 return flags; 2777 return flags;
2773} 2778}
2774 2779
2775ecb_cold 2780ecb_cold
2776unsigned int 2781unsigned int
2777ev_embeddable_backends (void) EV_THROW 2782ev_embeddable_backends (void) EV_NOEXCEPT
2778{ 2783{
2779 int flags = EVBACKEND_EPOLL | EVBACKEND_KQUEUE | EVBACKEND_PORT; 2784 int flags = EVBACKEND_EPOLL | EVBACKEND_KQUEUE | EVBACKEND_PORT;
2780 2785
2781 /* epoll embeddability broken on all linux versions up to at least 2.6.23 */ 2786 /* epoll embeddability broken on all linux versions up to at least 2.6.23 */
2782 if (ev_linux_version () < 0x020620) /* disable it on linux < 2.6.32 */ 2787 if (ev_linux_version () < 0x020620) /* disable it on linux < 2.6.32 */
2784 2789
2785 return flags; 2790 return flags;
2786} 2791}
2787 2792
2788unsigned int 2793unsigned int
2789ev_backend (EV_P) EV_THROW 2794ev_backend (EV_P) EV_NOEXCEPT
2790{ 2795{
2791 return backend; 2796 return backend;
2792} 2797}
2793 2798
2794#if EV_FEATURE_API 2799#if EV_FEATURE_API
2795unsigned int 2800unsigned int
2796ev_iteration (EV_P) EV_THROW 2801ev_iteration (EV_P) EV_NOEXCEPT
2797{ 2802{
2798 return loop_count; 2803 return loop_count;
2799} 2804}
2800 2805
2801unsigned int 2806unsigned int
2802ev_depth (EV_P) EV_THROW 2807ev_depth (EV_P) EV_NOEXCEPT
2803{ 2808{
2804 return loop_depth; 2809 return loop_depth;
2805} 2810}
2806 2811
2807void 2812void
2808ev_set_io_collect_interval (EV_P_ ev_tstamp interval) EV_THROW 2813ev_set_io_collect_interval (EV_P_ ev_tstamp interval) EV_NOEXCEPT
2809{ 2814{
2810 io_blocktime = interval; 2815 io_blocktime = interval;
2811} 2816}
2812 2817
2813void 2818void
2814ev_set_timeout_collect_interval (EV_P_ ev_tstamp interval) EV_THROW 2819ev_set_timeout_collect_interval (EV_P_ ev_tstamp interval) EV_NOEXCEPT
2815{ 2820{
2816 timeout_blocktime = interval; 2821 timeout_blocktime = interval;
2817} 2822}
2818 2823
2819void 2824void
2820ev_set_userdata (EV_P_ void *data) EV_THROW 2825ev_set_userdata (EV_P_ void *data) EV_NOEXCEPT
2821{ 2826{
2822 userdata = data; 2827 userdata = data;
2823} 2828}
2824 2829
2825void * 2830void *
2826ev_userdata (EV_P) EV_THROW 2831ev_userdata (EV_P) EV_NOEXCEPT
2827{ 2832{
2828 return userdata; 2833 return userdata;
2829} 2834}
2830 2835
2831void 2836void
2832ev_set_invoke_pending_cb (EV_P_ ev_loop_callback invoke_pending_cb) EV_THROW 2837ev_set_invoke_pending_cb (EV_P_ ev_loop_callback invoke_pending_cb) EV_NOEXCEPT
2833{ 2838{
2834 invoke_cb = invoke_pending_cb; 2839 invoke_cb = invoke_pending_cb;
2835} 2840}
2836 2841
2837void 2842void
2838ev_set_loop_release_cb (EV_P_ void (*release)(EV_P) EV_THROW, void (*acquire)(EV_P) EV_THROW) EV_THROW 2843ev_set_loop_release_cb (EV_P_ void (*release)(EV_P) EV_NOEXCEPT, void (*acquire)(EV_P) EV_NOEXCEPT) EV_NOEXCEPT
2839{ 2844{
2840 release_cb = release; 2845 release_cb = release;
2841 acquire_cb = acquire; 2846 acquire_cb = acquire;
2842} 2847}
2843#endif 2848#endif
2844 2849
2845/* initialise a loop structure, must be zero-initialised */ 2850/* initialise a loop structure, must be zero-initialised */
2846noinline ecb_cold 2851noinline ecb_cold
2847static void 2852static void
2848loop_init (EV_P_ unsigned int flags) EV_THROW 2853loop_init (EV_P_ unsigned int flags) EV_NOEXCEPT
2849{ 2854{
2850 if (!backend) 2855 if (!backend)
2851 { 2856 {
2852 origflags = flags; 2857 origflags = flags;
2853 2858
3094 3099
3095#if EV_MULTIPLICITY 3100#if EV_MULTIPLICITY
3096 3101
3097ecb_cold 3102ecb_cold
3098struct ev_loop * 3103struct ev_loop *
3099ev_loop_new (unsigned int flags) EV_THROW 3104ev_loop_new (unsigned int flags) EV_NOEXCEPT
3100{ 3105{
3101 EV_P = (struct ev_loop *)ev_malloc (sizeof (struct ev_loop)); 3106 EV_P = (struct ev_loop *)ev_malloc (sizeof (struct ev_loop));
3102 3107
3103 memset (EV_A, 0, sizeof (struct ev_loop)); 3108 memset (EV_A, 0, sizeof (struct ev_loop));
3104 loop_init (EV_A_ flags); 3109 loop_init (EV_A_ flags);
3151} 3156}
3152#endif 3157#endif
3153 3158
3154#if EV_FEATURE_API 3159#if EV_FEATURE_API
3155void ecb_cold 3160void ecb_cold
3156ev_verify (EV_P) EV_THROW 3161ev_verify (EV_P) EV_NOEXCEPT
3157{ 3162{
3158#if EV_VERIFY 3163#if EV_VERIFY
3159 int i; 3164 int i;
3160 WL w, w2; 3165 WL w, w2;
3161 3166
3242ecb_cold 3247ecb_cold
3243struct ev_loop * 3248struct ev_loop *
3244#else 3249#else
3245int 3250int
3246#endif 3251#endif
3247ev_default_loop (unsigned int flags) EV_THROW 3252ev_default_loop (unsigned int flags) EV_NOEXCEPT
3248{ 3253{
3249 if (!ev_default_loop_ptr) 3254 if (!ev_default_loop_ptr)
3250 { 3255 {
3251#if EV_MULTIPLICITY 3256#if EV_MULTIPLICITY
3252 EV_P = ev_default_loop_ptr = &default_loop_struct; 3257 EV_P = ev_default_loop_ptr = &default_loop_struct;
3271 3276
3272 return ev_default_loop_ptr; 3277 return ev_default_loop_ptr;
3273} 3278}
3274 3279
3275void 3280void
3276ev_loop_fork (EV_P) EV_THROW 3281ev_loop_fork (EV_P) EV_NOEXCEPT
3277{ 3282{
3278 postfork = 1; 3283 postfork = 1;
3279} 3284}
3280 3285
3281/*****************************************************************************/ 3286/*****************************************************************************/
3285{ 3290{
3286 EV_CB_INVOKE ((W)w, revents); 3291 EV_CB_INVOKE ((W)w, revents);
3287} 3292}
3288 3293
3289unsigned int 3294unsigned int
3290ev_pending_count (EV_P) EV_THROW 3295ev_pending_count (EV_P) EV_NOEXCEPT
3291{ 3296{
3292 int pri; 3297 int pri;
3293 unsigned int count = 0; 3298 unsigned int count = 0;
3294 3299
3295 for (pri = NUMPRI; pri--; ) 3300 for (pri = NUMPRI; pri--; )
3302void 3307void
3303ev_invoke_pending (EV_P) 3308ev_invoke_pending (EV_P)
3304{ 3309{
3305 pendingpri = NUMPRI; 3310 pendingpri = NUMPRI;
3306 3311
3307 while (pendingpri) /* pendingpri possibly gets modified in the inner loop */ 3312 do
3308 { 3313 {
3309 --pendingpri; 3314 --pendingpri;
3310 3315
3316 /* pendingpri possibly gets modified in the inner loop */
3311 while (pendingcnt [pendingpri]) 3317 while (pendingcnt [pendingpri])
3312 { 3318 {
3313 ANPENDING *p = pendings [pendingpri] + --pendingcnt [pendingpri]; 3319 ANPENDING *p = pendings [pendingpri] + --pendingcnt [pendingpri];
3314 3320
3315 p->w->pending = 0; 3321 p->w->pending = 0;
3316 EV_CB_INVOKE (p->w, p->events); 3322 EV_CB_INVOKE (p->w, p->events);
3317 EV_FREQUENT_CHECK; 3323 EV_FREQUENT_CHECK;
3318 } 3324 }
3319 } 3325 }
3326 while (pendingpri);
3320} 3327}
3321 3328
3322#if EV_IDLE_ENABLE 3329#if EV_IDLE_ENABLE
3323/* make idle watchers pending. this handles the "call-idle */ 3330/* make idle watchers pending. this handles the "call-idle */
3324/* only when higher priorities are idle" logic */ 3331/* only when higher priorities are idle" logic */
3733 3740
3734 return activecnt; 3741 return activecnt;
3735} 3742}
3736 3743
3737void 3744void
3738ev_break (EV_P_ int how) EV_THROW 3745ev_break (EV_P_ int how) EV_NOEXCEPT
3739{ 3746{
3740 loop_done = how; 3747 loop_done = how;
3741} 3748}
3742 3749
3743void 3750void
3744ev_ref (EV_P) EV_THROW 3751ev_ref (EV_P) EV_NOEXCEPT
3745{ 3752{
3746 ++activecnt; 3753 ++activecnt;
3747} 3754}
3748 3755
3749void 3756void
3750ev_unref (EV_P) EV_THROW 3757ev_unref (EV_P) EV_NOEXCEPT
3751{ 3758{
3752 --activecnt; 3759 --activecnt;
3753} 3760}
3754 3761
3755void 3762void
3756ev_now_update (EV_P) EV_THROW 3763ev_now_update (EV_P) EV_NOEXCEPT
3757{ 3764{
3758 time_update (EV_A_ 1e100); 3765 time_update (EV_A_ 1e100);
3759} 3766}
3760 3767
3761void 3768void
3762ev_suspend (EV_P) EV_THROW 3769ev_suspend (EV_P) EV_NOEXCEPT
3763{ 3770{
3764 ev_now_update (EV_A); 3771 ev_now_update (EV_A);
3765} 3772}
3766 3773
3767void 3774void
3768ev_resume (EV_P) EV_THROW 3775ev_resume (EV_P) EV_NOEXCEPT
3769{ 3776{
3770 ev_tstamp mn_prev = mn_now; 3777 ev_tstamp mn_prev = mn_now;
3771 3778
3772 ev_now_update (EV_A); 3779 ev_now_update (EV_A);
3773 timers_reschedule (EV_A_ mn_now - mn_prev); 3780 timers_reschedule (EV_A_ mn_now - mn_prev);
3812 w->pending = 0; 3819 w->pending = 0;
3813 } 3820 }
3814} 3821}
3815 3822
3816int 3823int
3817ev_clear_pending (EV_P_ void *w) EV_THROW 3824ev_clear_pending (EV_P_ void *w) EV_NOEXCEPT
3818{ 3825{
3819 W w_ = (W)w; 3826 W w_ = (W)w;
3820 int pending = w_->pending; 3827 int pending = w_->pending;
3821 3828
3822 if (expect_true (pending)) 3829 if (expect_true (pending))
3856 3863
3857/*****************************************************************************/ 3864/*****************************************************************************/
3858 3865
3859noinline 3866noinline
3860void 3867void
3861ev_io_start (EV_P_ ev_io *w) EV_THROW 3868ev_io_start (EV_P_ ev_io *w) EV_NOEXCEPT
3862{ 3869{
3863 int fd = w->fd; 3870 int fd = w->fd;
3864 3871
3865 if (expect_false (ev_is_active (w))) 3872 if (expect_false (ev_is_active (w)))
3866 return; 3873 return;
3883 EV_FREQUENT_CHECK; 3890 EV_FREQUENT_CHECK;
3884} 3891}
3885 3892
3886noinline 3893noinline
3887void 3894void
3888ev_io_stop (EV_P_ ev_io *w) EV_THROW 3895ev_io_stop (EV_P_ ev_io *w) EV_NOEXCEPT
3889{ 3896{
3890 clear_pending (EV_A_ (W)w); 3897 clear_pending (EV_A_ (W)w);
3891 if (expect_false (!ev_is_active (w))) 3898 if (expect_false (!ev_is_active (w)))
3892 return; 3899 return;
3893 3900
3903 EV_FREQUENT_CHECK; 3910 EV_FREQUENT_CHECK;
3904} 3911}
3905 3912
3906noinline 3913noinline
3907void 3914void
3908ev_timer_start (EV_P_ ev_timer *w) EV_THROW 3915ev_timer_start (EV_P_ ev_timer *w) EV_NOEXCEPT
3909{ 3916{
3910 if (expect_false (ev_is_active (w))) 3917 if (expect_false (ev_is_active (w)))
3911 return; 3918 return;
3912 3919
3913 ev_at (w) += mn_now; 3920 ev_at (w) += mn_now;
3928 /*assert (("libev: internal timer heap corruption", timers [ev_active (w)] == (WT)w));*/ 3935 /*assert (("libev: internal timer heap corruption", timers [ev_active (w)] == (WT)w));*/
3929} 3936}
3930 3937
3931noinline 3938noinline
3932void 3939void
3933ev_timer_stop (EV_P_ ev_timer *w) EV_THROW 3940ev_timer_stop (EV_P_ ev_timer *w) EV_NOEXCEPT
3934{ 3941{
3935 clear_pending (EV_A_ (W)w); 3942 clear_pending (EV_A_ (W)w);
3936 if (expect_false (!ev_is_active (w))) 3943 if (expect_false (!ev_is_active (w)))
3937 return; 3944 return;
3938 3945
3959 EV_FREQUENT_CHECK; 3966 EV_FREQUENT_CHECK;
3960} 3967}
3961 3968
3962noinline 3969noinline
3963void 3970void
3964ev_timer_again (EV_P_ ev_timer *w) EV_THROW 3971ev_timer_again (EV_P_ ev_timer *w) EV_NOEXCEPT
3965{ 3972{
3966 EV_FREQUENT_CHECK; 3973 EV_FREQUENT_CHECK;
3967 3974
3968 clear_pending (EV_A_ (W)w); 3975 clear_pending (EV_A_ (W)w);
3969 3976
3986 3993
3987 EV_FREQUENT_CHECK; 3994 EV_FREQUENT_CHECK;
3988} 3995}
3989 3996
3990ev_tstamp 3997ev_tstamp
3991ev_timer_remaining (EV_P_ ev_timer *w) EV_THROW 3998ev_timer_remaining (EV_P_ ev_timer *w) EV_NOEXCEPT
3992{ 3999{
3993 return ev_at (w) - (ev_is_active (w) ? mn_now : 0.); 4000 return ev_at (w) - (ev_is_active (w) ? mn_now : 0.);
3994} 4001}
3995 4002
3996#if EV_PERIODIC_ENABLE 4003#if EV_PERIODIC_ENABLE
3997noinline 4004noinline
3998void 4005void
3999ev_periodic_start (EV_P_ ev_periodic *w) EV_THROW 4006ev_periodic_start (EV_P_ ev_periodic *w) EV_NOEXCEPT
4000{ 4007{
4001 if (expect_false (ev_is_active (w))) 4008 if (expect_false (ev_is_active (w)))
4002 return; 4009 return;
4003 4010
4004 if (w->reschedule_cb) 4011 if (w->reschedule_cb)
4025 /*assert (("libev: internal periodic heap corruption", ANHE_w (periodics [ev_active (w)]) == (WT)w));*/ 4032 /*assert (("libev: internal periodic heap corruption", ANHE_w (periodics [ev_active (w)]) == (WT)w));*/
4026} 4033}
4027 4034
4028noinline 4035noinline
4029void 4036void
4030ev_periodic_stop (EV_P_ ev_periodic *w) EV_THROW 4037ev_periodic_stop (EV_P_ ev_periodic *w) EV_NOEXCEPT
4031{ 4038{
4032 clear_pending (EV_A_ (W)w); 4039 clear_pending (EV_A_ (W)w);
4033 if (expect_false (!ev_is_active (w))) 4040 if (expect_false (!ev_is_active (w)))
4034 return; 4041 return;
4035 4042
4054 EV_FREQUENT_CHECK; 4061 EV_FREQUENT_CHECK;
4055} 4062}
4056 4063
4057noinline 4064noinline
4058void 4065void
4059ev_periodic_again (EV_P_ ev_periodic *w) EV_THROW 4066ev_periodic_again (EV_P_ ev_periodic *w) EV_NOEXCEPT
4060{ 4067{
4061 /* TODO: use adjustheap and recalculation */ 4068 /* TODO: use adjustheap and recalculation */
4062 ev_periodic_stop (EV_A_ w); 4069 ev_periodic_stop (EV_A_ w);
4063 ev_periodic_start (EV_A_ w); 4070 ev_periodic_start (EV_A_ w);
4064} 4071}
4070 4077
4071#if EV_SIGNAL_ENABLE 4078#if EV_SIGNAL_ENABLE
4072 4079
4073noinline 4080noinline
4074void 4081void
4075ev_signal_start (EV_P_ ev_signal *w) EV_THROW 4082ev_signal_start (EV_P_ ev_signal *w) EV_NOEXCEPT
4076{ 4083{
4077 if (expect_false (ev_is_active (w))) 4084 if (expect_false (ev_is_active (w)))
4078 return; 4085 return;
4079 4086
4080 assert (("libev: ev_signal_start called with illegal signal number", w->signum > 0 && w->signum < EV_NSIG)); 4087 assert (("libev: ev_signal_start called with illegal signal number", w->signum > 0 && w->signum < EV_NSIG));
4153 EV_FREQUENT_CHECK; 4160 EV_FREQUENT_CHECK;
4154} 4161}
4155 4162
4156noinline 4163noinline
4157void 4164void
4158ev_signal_stop (EV_P_ ev_signal *w) EV_THROW 4165ev_signal_stop (EV_P_ ev_signal *w) EV_NOEXCEPT
4159{ 4166{
4160 clear_pending (EV_A_ (W)w); 4167 clear_pending (EV_A_ (W)w);
4161 if (expect_false (!ev_is_active (w))) 4168 if (expect_false (!ev_is_active (w)))
4162 return; 4169 return;
4163 4170
4194#endif 4201#endif
4195 4202
4196#if EV_CHILD_ENABLE 4203#if EV_CHILD_ENABLE
4197 4204
4198void 4205void
4199ev_child_start (EV_P_ ev_child *w) EV_THROW 4206ev_child_start (EV_P_ ev_child *w) EV_NOEXCEPT
4200{ 4207{
4201#if EV_MULTIPLICITY 4208#if EV_MULTIPLICITY
4202 assert (("libev: child watchers are only supported in the default loop", loop == ev_default_loop_ptr)); 4209 assert (("libev: child watchers are only supported in the default loop", loop == ev_default_loop_ptr));
4203#endif 4210#endif
4204 if (expect_false (ev_is_active (w))) 4211 if (expect_false (ev_is_active (w)))
4211 4218
4212 EV_FREQUENT_CHECK; 4219 EV_FREQUENT_CHECK;
4213} 4220}
4214 4221
4215void 4222void
4216ev_child_stop (EV_P_ ev_child *w) EV_THROW 4223ev_child_stop (EV_P_ ev_child *w) EV_NOEXCEPT
4217{ 4224{
4218 clear_pending (EV_A_ (W)w); 4225 clear_pending (EV_A_ (W)w);
4219 if (expect_false (!ev_is_active (w))) 4226 if (expect_false (!ev_is_active (w)))
4220 return; 4227 return;
4221 4228
4486#else 4493#else
4487# define EV_LSTAT(p,b) lstat (p, b) 4494# define EV_LSTAT(p,b) lstat (p, b)
4488#endif 4495#endif
4489 4496
4490void 4497void
4491ev_stat_stat (EV_P_ ev_stat *w) EV_THROW 4498ev_stat_stat (EV_P_ ev_stat *w) EV_NOEXCEPT
4492{ 4499{
4493 if (lstat (w->path, &w->attr) < 0) 4500 if (lstat (w->path, &w->attr) < 0)
4494 w->attr.st_nlink = 0; 4501 w->attr.st_nlink = 0;
4495 else if (!w->attr.st_nlink) 4502 else if (!w->attr.st_nlink)
4496 w->attr.st_nlink = 1; 4503 w->attr.st_nlink = 1;
4536 ev_feed_event (EV_A_ w, EV_STAT); 4543 ev_feed_event (EV_A_ w, EV_STAT);
4537 } 4544 }
4538} 4545}
4539 4546
4540void 4547void
4541ev_stat_start (EV_P_ ev_stat *w) EV_THROW 4548ev_stat_start (EV_P_ ev_stat *w) EV_NOEXCEPT
4542{ 4549{
4543 if (expect_false (ev_is_active (w))) 4550 if (expect_false (ev_is_active (w)))
4544 return; 4551 return;
4545 4552
4546 ev_stat_stat (EV_A_ w); 4553 ev_stat_stat (EV_A_ w);
4567 4574
4568 EV_FREQUENT_CHECK; 4575 EV_FREQUENT_CHECK;
4569} 4576}
4570 4577
4571void 4578void
4572ev_stat_stop (EV_P_ ev_stat *w) EV_THROW 4579ev_stat_stop (EV_P_ ev_stat *w) EV_NOEXCEPT
4573{ 4580{
4574 clear_pending (EV_A_ (W)w); 4581 clear_pending (EV_A_ (W)w);
4575 if (expect_false (!ev_is_active (w))) 4582 if (expect_false (!ev_is_active (w)))
4576 return; 4583 return;
4577 4584
4593} 4600}
4594#endif 4601#endif
4595 4602
4596#if EV_IDLE_ENABLE 4603#if EV_IDLE_ENABLE
4597void 4604void
4598ev_idle_start (EV_P_ ev_idle *w) EV_THROW 4605ev_idle_start (EV_P_ ev_idle *w) EV_NOEXCEPT
4599{ 4606{
4600 if (expect_false (ev_is_active (w))) 4607 if (expect_false (ev_is_active (w)))
4601 return; 4608 return;
4602 4609
4603 pri_adjust (EV_A_ (W)w); 4610 pri_adjust (EV_A_ (W)w);
4616 4623
4617 EV_FREQUENT_CHECK; 4624 EV_FREQUENT_CHECK;
4618} 4625}
4619 4626
4620void 4627void
4621ev_idle_stop (EV_P_ ev_idle *w) EV_THROW 4628ev_idle_stop (EV_P_ ev_idle *w) EV_NOEXCEPT
4622{ 4629{
4623 clear_pending (EV_A_ (W)w); 4630 clear_pending (EV_A_ (W)w);
4624 if (expect_false (!ev_is_active (w))) 4631 if (expect_false (!ev_is_active (w)))
4625 return; 4632 return;
4626 4633
4640} 4647}
4641#endif 4648#endif
4642 4649
4643#if EV_PREPARE_ENABLE 4650#if EV_PREPARE_ENABLE
4644void 4651void
4645ev_prepare_start (EV_P_ ev_prepare *w) EV_THROW 4652ev_prepare_start (EV_P_ ev_prepare *w) EV_NOEXCEPT
4646{ 4653{
4647 if (expect_false (ev_is_active (w))) 4654 if (expect_false (ev_is_active (w)))
4648 return; 4655 return;
4649 4656
4650 EV_FREQUENT_CHECK; 4657 EV_FREQUENT_CHECK;
4655 4662
4656 EV_FREQUENT_CHECK; 4663 EV_FREQUENT_CHECK;
4657} 4664}
4658 4665
4659void 4666void
4660ev_prepare_stop (EV_P_ ev_prepare *w) EV_THROW 4667ev_prepare_stop (EV_P_ ev_prepare *w) EV_NOEXCEPT
4661{ 4668{
4662 clear_pending (EV_A_ (W)w); 4669 clear_pending (EV_A_ (W)w);
4663 if (expect_false (!ev_is_active (w))) 4670 if (expect_false (!ev_is_active (w)))
4664 return; 4671 return;
4665 4672
4678} 4685}
4679#endif 4686#endif
4680 4687
4681#if EV_CHECK_ENABLE 4688#if EV_CHECK_ENABLE
4682void 4689void
4683ev_check_start (EV_P_ ev_check *w) EV_THROW 4690ev_check_start (EV_P_ ev_check *w) EV_NOEXCEPT
4684{ 4691{
4685 if (expect_false (ev_is_active (w))) 4692 if (expect_false (ev_is_active (w)))
4686 return; 4693 return;
4687 4694
4688 EV_FREQUENT_CHECK; 4695 EV_FREQUENT_CHECK;
4693 4700
4694 EV_FREQUENT_CHECK; 4701 EV_FREQUENT_CHECK;
4695} 4702}
4696 4703
4697void 4704void
4698ev_check_stop (EV_P_ ev_check *w) EV_THROW 4705ev_check_stop (EV_P_ ev_check *w) EV_NOEXCEPT
4699{ 4706{
4700 clear_pending (EV_A_ (W)w); 4707 clear_pending (EV_A_ (W)w);
4701 if (expect_false (!ev_is_active (w))) 4708 if (expect_false (!ev_is_active (w)))
4702 return; 4709 return;
4703 4710
4717#endif 4724#endif
4718 4725
4719#if EV_EMBED_ENABLE 4726#if EV_EMBED_ENABLE
4720noinline 4727noinline
4721void 4728void
4722ev_embed_sweep (EV_P_ ev_embed *w) EV_THROW 4729ev_embed_sweep (EV_P_ ev_embed *w) EV_NOEXCEPT
4723{ 4730{
4724 ev_run (w->other, EVRUN_NOWAIT); 4731 ev_run (w->other, EVRUN_NOWAIT);
4725} 4732}
4726 4733
4727static void 4734static void
4775 ev_idle_stop (EV_A_ idle); 4782 ev_idle_stop (EV_A_ idle);
4776} 4783}
4777#endif 4784#endif
4778 4785
4779void 4786void
4780ev_embed_start (EV_P_ ev_embed *w) EV_THROW 4787ev_embed_start (EV_P_ ev_embed *w) EV_NOEXCEPT
4781{ 4788{
4782 if (expect_false (ev_is_active (w))) 4789 if (expect_false (ev_is_active (w)))
4783 return; 4790 return;
4784 4791
4785 { 4792 {
4806 4813
4807 EV_FREQUENT_CHECK; 4814 EV_FREQUENT_CHECK;
4808} 4815}
4809 4816
4810void 4817void
4811ev_embed_stop (EV_P_ ev_embed *w) EV_THROW 4818ev_embed_stop (EV_P_ ev_embed *w) EV_NOEXCEPT
4812{ 4819{
4813 clear_pending (EV_A_ (W)w); 4820 clear_pending (EV_A_ (W)w);
4814 if (expect_false (!ev_is_active (w))) 4821 if (expect_false (!ev_is_active (w)))
4815 return; 4822 return;
4816 4823
4826} 4833}
4827#endif 4834#endif
4828 4835
4829#if EV_FORK_ENABLE 4836#if EV_FORK_ENABLE
4830void 4837void
4831ev_fork_start (EV_P_ ev_fork *w) EV_THROW 4838ev_fork_start (EV_P_ ev_fork *w) EV_NOEXCEPT
4832{ 4839{
4833 if (expect_false (ev_is_active (w))) 4840 if (expect_false (ev_is_active (w)))
4834 return; 4841 return;
4835 4842
4836 EV_FREQUENT_CHECK; 4843 EV_FREQUENT_CHECK;
4841 4848
4842 EV_FREQUENT_CHECK; 4849 EV_FREQUENT_CHECK;
4843} 4850}
4844 4851
4845void 4852void
4846ev_fork_stop (EV_P_ ev_fork *w) EV_THROW 4853ev_fork_stop (EV_P_ ev_fork *w) EV_NOEXCEPT
4847{ 4854{
4848 clear_pending (EV_A_ (W)w); 4855 clear_pending (EV_A_ (W)w);
4849 if (expect_false (!ev_is_active (w))) 4856 if (expect_false (!ev_is_active (w)))
4850 return; 4857 return;
4851 4858
4864} 4871}
4865#endif 4872#endif
4866 4873
4867#if EV_CLEANUP_ENABLE 4874#if EV_CLEANUP_ENABLE
4868void 4875void
4869ev_cleanup_start (EV_P_ ev_cleanup *w) EV_THROW 4876ev_cleanup_start (EV_P_ ev_cleanup *w) EV_NOEXCEPT
4870{ 4877{
4871 if (expect_false (ev_is_active (w))) 4878 if (expect_false (ev_is_active (w)))
4872 return; 4879 return;
4873 4880
4874 EV_FREQUENT_CHECK; 4881 EV_FREQUENT_CHECK;
4881 ev_unref (EV_A); 4888 ev_unref (EV_A);
4882 EV_FREQUENT_CHECK; 4889 EV_FREQUENT_CHECK;
4883} 4890}
4884 4891
4885void 4892void
4886ev_cleanup_stop (EV_P_ ev_cleanup *w) EV_THROW 4893ev_cleanup_stop (EV_P_ ev_cleanup *w) EV_NOEXCEPT
4887{ 4894{
4888 clear_pending (EV_A_ (W)w); 4895 clear_pending (EV_A_ (W)w);
4889 if (expect_false (!ev_is_active (w))) 4896 if (expect_false (!ev_is_active (w)))
4890 return; 4897 return;
4891 4898
4905} 4912}
4906#endif 4913#endif
4907 4914
4908#if EV_ASYNC_ENABLE 4915#if EV_ASYNC_ENABLE
4909void 4916void
4910ev_async_start (EV_P_ ev_async *w) EV_THROW 4917ev_async_start (EV_P_ ev_async *w) EV_NOEXCEPT
4911{ 4918{
4912 if (expect_false (ev_is_active (w))) 4919 if (expect_false (ev_is_active (w)))
4913 return; 4920 return;
4914 4921
4915 w->sent = 0; 4922 w->sent = 0;
4924 4931
4925 EV_FREQUENT_CHECK; 4932 EV_FREQUENT_CHECK;
4926} 4933}
4927 4934
4928void 4935void
4929ev_async_stop (EV_P_ ev_async *w) EV_THROW 4936ev_async_stop (EV_P_ ev_async *w) EV_NOEXCEPT
4930{ 4937{
4931 clear_pending (EV_A_ (W)w); 4938 clear_pending (EV_A_ (W)w);
4932 if (expect_false (!ev_is_active (w))) 4939 if (expect_false (!ev_is_active (w)))
4933 return; 4940 return;
4934 4941
4945 4952
4946 EV_FREQUENT_CHECK; 4953 EV_FREQUENT_CHECK;
4947} 4954}
4948 4955
4949void 4956void
4950ev_async_send (EV_P_ ev_async *w) EV_THROW 4957ev_async_send (EV_P_ ev_async *w) EV_NOEXCEPT
4951{ 4958{
4952 w->sent = 1; 4959 w->sent = 1;
4953 evpipe_write (EV_A_ &async_pending); 4960 evpipe_write (EV_A_ &async_pending);
4954} 4961}
4955#endif 4962#endif
4992 4999
4993 once_cb (EV_A_ once, revents | ev_clear_pending (EV_A_ &once->io)); 5000 once_cb (EV_A_ once, revents | ev_clear_pending (EV_A_ &once->io));
4994} 5001}
4995 5002
4996void 5003void
4997ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg) EV_THROW 5004ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg) EV_NOEXCEPT
4998{ 5005{
4999 struct ev_once *once = (struct ev_once *)ev_malloc (sizeof (struct ev_once)); 5006 struct ev_once *once = (struct ev_once *)ev_malloc (sizeof (struct ev_once));
5000 5007
5001 if (expect_false (!once)) 5008 if (expect_false (!once))
5002 { 5009 {
5025/*****************************************************************************/ 5032/*****************************************************************************/
5026 5033
5027#if EV_WALK_ENABLE 5034#if EV_WALK_ENABLE
5028ecb_cold 5035ecb_cold
5029void 5036void
5030ev_walk (EV_P_ int types, void (*cb)(EV_P_ int type, void *w)) EV_THROW 5037ev_walk (EV_P_ int types, void (*cb)(EV_P_ int type, void *w)) EV_NOEXCEPT
5031{ 5038{
5032 int i, j; 5039 int i, j;
5033 ev_watcher_list *wl, *wn; 5040 ev_watcher_list *wl, *wn;
5034 5041
5035 if (types & (EV_IO | EV_EMBED)) 5042 if (types & (EV_IO | EV_EMBED))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines