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

Comparing libev/ev.c (file contents):
Revision 1.420 by root, Wed Apr 18 05:44:42 2012 UTC vs.
Revision 1.423 by root, Sun Apr 22 10:14:20 2012 UTC

359#endif 359#endif
360 360
361/* on linux, we can use a (slow) syscall to avoid a dependency on pthread, */ 361/* on linux, we can use a (slow) syscall to avoid a dependency on pthread, */
362/* which makes programs even slower. might work on other unices, too. */ 362/* which makes programs even slower. might work on other unices, too. */
363#if EV_USE_CLOCK_SYSCALL 363#if EV_USE_CLOCK_SYSCALL
364# include <syscall.h> 364# include <sys/syscall.h>
365# ifdef SYS_clock_gettime 365# ifdef SYS_clock_gettime
366# define clock_gettime(id, ts) syscall (SYS_clock_gettime, (id), (ts)) 366# define clock_gettime(id, ts) syscall (SYS_clock_gettime, (id), (ts))
367# undef EV_USE_MONOTONIC 367# undef EV_USE_MONOTONIC
368# define EV_USE_MONOTONIC 1 368# define EV_USE_MONOTONIC 1
369# else 369# else
2215{ 2215{
2216 invoke_cb = invoke_pending_cb; 2216 invoke_cb = invoke_pending_cb;
2217} 2217}
2218 2218
2219void 2219void
2220ev_set_loop_release_cb (EV_P_ void (*release)(EV_P), void (*acquire)(EV_P)) EV_THROW 2220ev_set_loop_release_cb (EV_P_ void (*release)(EV_P) EV_THROW, void (*acquire)(EV_P) EV_THROW) EV_THROW
2221{ 2221{
2222 release_cb = release; 2222 release_cb = release;
2223 acquire_cb = acquire; 2223 acquire_cb = acquire;
2224} 2224}
2225#endif 2225#endif
2319 } 2319 }
2320} 2320}
2321 2321
2322/* free up a loop structure */ 2322/* free up a loop structure */
2323void ecb_cold 2323void ecb_cold
2324ev_loop_destroy (EV_P) EV_THROW 2324ev_loop_destroy (EV_P)
2325{ 2325{
2326 int i; 2326 int i;
2327 2327
2328#if EV_MULTIPLICITY 2328#if EV_MULTIPLICITY
2329 /* mimic free (0) */ 2329 /* mimic free (0) */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines