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

Comparing EV/EV.xs (file contents):
Revision 1.160 by root, Sun May 6 16:30:27 2012 UTC vs.
Revision 1.162 by root, Tue Jan 15 21:49:38 2013 UTC

15 return s_fileno (fh, 0); 15 return s_fileno (fh, 0);
16} 16}
17 17
18#define EV_STANDALONE 1 18#define EV_STANDALONE 1
19#define EV_PROTOTYPES 1 19#define EV_PROTOTYPES 1
20#define EV_USE_CLOCK_SYSCALL 0 /* as long as we need pthreads anyways... */
21#define EV_USE_NANOSLEEP EV_USE_MONOTONIC 20#define EV_USE_NANOSLEEP EV_USE_MONOTONIC
22#define EV_USE_FLOOR 1 21#define EV_USE_FLOOR 1
23#define EV_API_STATIC 22#define EV_API_STATIC
24#define EV_H <ev.h> 23#define EV_H <ev.h>
25#define EV_CONFIG_H error 24#define EV_CONFIG_H error
519 518
520 sv_setiv (sv, (IV)&evapi); 519 sv_setiv (sv, (IV)&evapi);
521 SvREADONLY_on (sv); 520 SvREADONLY_on (sv);
522 } 521 }
523#if !defined _WIN32 && !defined _MINIX 522#if !defined _WIN32 && !defined _MINIX
523#if __linux
524 int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void * __dso_handle);
525 __register_atfork (0, 0, default_fork, 0);
526#else
524 pthread_atfork (0, 0, default_fork); 527 pthread_atfork (0, 0, default_fork);
528#endif
525#endif 529#endif
526} 530}
527 531
528SV *ev_default_loop (unsigned int flags = 0) 532SV *ev_default_loop (unsigned int flags = 0)
529 CODE: 533 CODE:
618 C_ARGS: evapi.default_loop, fd, revents 622 C_ARGS: evapi.default_loop, fd, revents
619 623
620void ev_feed_signal_event (SV *signal) 624void ev_feed_signal_event (SV *signal)
621 CODE: 625 CODE:
622{ 626{
623 Signal signum = s_signum (signal); 627 Signal signum = s_signum (signal);
624 CHECK_SIG (signal, signum); 628 CHECK_SIG (signal, signum);
625 629
626 ev_feed_signal_event (evapi.default_loop, signum); 630 ev_feed_signal_event (evapi.default_loop, signum);
627} 631}
628 632

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines