ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.xs
(Generate patch)

Comparing EV/EV.xs (file contents):
Revision 1.170 by root, Mon Jul 13 05:36:15 2015 UTC vs.
Revision 1.173 by root, Tue Jun 25 23:57:23 2019 UTC

17 return s_fileno (fh, 0); 17 return s_fileno (fh, 0);
18} 18}
19 19
20#ifndef GvCV_set 20#ifndef GvCV_set
21# define GvCV_set(gv,cv) GvCV (gv) = cv 21# define GvCV_set(gv,cv) GvCV (gv) = cv
22#endif
23
24#if EV_ENABLE_ASSERTIONS
25# undef NDEBUG
26# include <assert.h>
22#endif 27#endif
23 28
24#define EV_STANDALONE 1 29#define EV_STANDALONE 1
25#define EV_PROTOTYPES 1 30#define EV_PROTOTYPES 1
26#define EV_USE_NANOSLEEP EV_USE_MONOTONIC 31#define EV_USE_NANOSLEEP EV_USE_MONOTONIC
534 539
535 sv_setiv (sv, (IV)&evapi); 540 sv_setiv (sv, (IV)&evapi);
536 SvREADONLY_on (sv); 541 SvREADONLY_on (sv);
537 } 542 }
538#if !defined _WIN32 && !defined _MINIX && !EV_NO_ATFORK 543#if !defined _WIN32 && !defined _MINIX && !EV_NO_ATFORK
539#if __linux 544/* unfortunately, musl neither implements the linux standard base,
545/* nor makes itself detectable via macros. yeah, right... */
546#if __linux && (__GLIBC__ || __UCLIBC__)
540 int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void * __dso_handle); 547 int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void * __dso_handle);
541 __register_atfork (0, 0, default_fork, 0); 548 __register_atfork (0, 0, default_fork, 0);
542#else 549#else
543 pthread_atfork (0, 0, default_fork); 550 pthread_atfork (0, 0, default_fork);
544#endif 551#endif
1045 1052
1046void ev_timer_stop (ev_timer *w) 1053void ev_timer_stop (ev_timer *w)
1047 CODE: 1054 CODE:
1048 STOP (timer, w); 1055 STOP (timer, w);
1049 1056
1050void ev_timer_again (ev_timer *w) 1057void ev_timer_again (ev_timer *w, NV repeat = NO_INIT)
1051 INIT: 1058 CODE:
1059 if (items > 1)
1060 w->repeat = repeat;
1052 CHECK_REPEAT (w->repeat); 1061 CHECK_REPEAT (w->repeat);
1053 CODE:
1054 ev_timer_again (e_loop (w), w); 1062 ev_timer_again (e_loop (w), w);
1055 UNREF (w); 1063 UNREF (w);
1056 1064
1057NV ev_timer_remaining (ev_timer *w) 1065NV ev_timer_remaining (ev_timer *w)
1058 C_ARGS: e_loop (w), w 1066 C_ARGS: e_loop (w), w

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines